Fix error when a user have no subName and hide compact toggle

This commit is contained in:
Oswaldo Acauan 2017-08-03 09:05:17 -03:00
parent 35fd834397
commit 92da0ace60
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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>