From 31830ffc7b578de643f5748227e4b783ee0782dd Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Wed, 29 Mar 2017 09:43:08 -0400 Subject: Add extra check before rendering emojis (#5879) --- .../post_view/components/reaction_list_container.jsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'webapp') diff --git a/webapp/components/post_view/components/reaction_list_container.jsx b/webapp/components/post_view/components/reaction_list_container.jsx index e21bfa24b..3ee8f73a3 100644 --- a/webapp/components/post_view/components/reaction_list_container.jsx +++ b/webapp/components/post_view/components/reaction_list_container.jsx @@ -82,17 +82,17 @@ export default class ReactionListContainer extends React.Component { } render() { - if (!this.props.post.has_reactions) { - return null; + if (this.props.post.has_reactions && this.state.reactions.length > 0) { + return ( + + ); } - return ( - - ); + return null; } } -- cgit v1.2.3-1-g7c22