From 2f418976aa4f8856f0249153347f631d08a912b1 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Mon, 23 Oct 2017 17:06:47 +0100 Subject: [PATCH] Only show flair for groups with avatars set Fix vector-im/riot-web#5377 --- src/components/views/elements/Flair.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/elements/Flair.js b/src/components/views/elements/Flair.js index 9ca8e460c7..69d9aa35b7 100644 --- a/src/components/views/elements/Flair.js +++ b/src/components/views/elements/Flair.js @@ -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;})}); } }