Add extra check before rendering emojis (#5879)

Этот коммит содержится в:
Ryan Wang
2017-03-29 09:43:08 -04:00
коммит произвёл Joram Wilander
родитель 060b9f92c3
Коммит 31830ffc7b

Просмотреть файл

@@ -82,10 +82,7 @@ export default class ReactionListContainer extends React.Component {
} }
render() { render() {
if (!this.props.post.has_reactions) { if (this.props.post.has_reactions && this.state.reactions.length > 0) {
return null;
}
return ( return (
<ReactionListView <ReactionListView
post={this.props.post} post={this.props.post}
@@ -95,4 +92,7 @@ export default class ReactionListContainer extends React.Component {
/> />
); );
} }
return null;
}
} }