Only show flair for groups with avatars set

Fix vector-im/riot-web#5377
pull/21833/head
Luke Barnard 2017-10-23 17:06:47 +01:00
parent e023aa9a10
commit 2f418976aa
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ export default class Flair extends React.Component {
}
const profiles = await this._getGroupProfiles(groups);
if (!this.unmounted) {
this.setState({profiles});
this.setState({profiles: profiles.filter((profile) => {return profile.avatarUrl;})});
}
}