Fix error when a user have no subName and hide compact toggle
This commit is contained in:
parent
35fd834397
commit
92da0ace60
@ -174,7 +174,7 @@ class UserList extends Component {
|
||||
return (
|
||||
<div className={styles.header}>
|
||||
{
|
||||
!this.state.compact ?
|
||||
!this.state.compact && false ?
|
||||
<div className={styles.headerTitle} role="banner">
|
||||
{intl.formatMessage(intlMessages.participantsTitle)}
|
||||
</div> : null
|
||||
|
@ -264,7 +264,7 @@ class UserListItem extends Component {
|
||||
{user.name} <i>{(user.isCurrent) ? `(${intl.formatMessage(messages.you)})` : ''}</i>
|
||||
</span>
|
||||
{
|
||||
userNameSub ?
|
||||
userNameSub.length ?
|
||||
<span className={styles.userNameSub}>
|
||||
{userNameSub.reduce((prev, curr) => [prev, ' | ', curr])}
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user