Fix error when a user have no subName
This commit is contained in:
parent
df35a22676
commit
35fd834397
@ -263,10 +263,13 @@ class UserListItem extends Component {
|
|||||||
<span className={styles.userNameMain}>
|
<span className={styles.userNameMain}>
|
||||||
{user.name} <i>{(user.isCurrent) ? `(${intl.formatMessage(messages.you)})` : ''}</i>
|
{user.name} <i>{(user.isCurrent) ? `(${intl.formatMessage(messages.you)})` : ''}</i>
|
||||||
</span>
|
</span>
|
||||||
<span className={styles.userNameSub}>
|
{
|
||||||
{userNameSub
|
userNameSub ?
|
||||||
.reduce((prev, curr) => [prev, ' | ', curr])}
|
<span className={styles.userNameSub}>
|
||||||
</span>
|
{userNameSub.reduce((prev, curr) => [prev, ' | ', curr])}
|
||||||
|
</span>
|
||||||
|
: null
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user