diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-08-01 13:27:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-01 13:27:18 -0400 |
commit | 0cc5854b64756010c1d3e85a2021bf7a7010e63b (patch) | |
tree | 71767f7caa892e5fe299624eae84b0c25c2aac79 /webapp/components/post_view/reaction/reaction.jsx | |
parent | 1026b7d84c9560802c7e5bcaded90a4748951bd5 (diff) | |
download | chat-0cc5854b64756010c1d3e85a2021bf7a7010e63b.tar.gz chat-0cc5854b64756010c1d3e85a2021bf7a7010e63b.tar.bz2 chat-0cc5854b64756010c1d3e85a2021bf7a7010e63b.zip |
Fixed error thrown when viewing a channel containing an invalid emoji reaction (#7080)
* Added better error handling for when reacting with a non-existant emoji
* Re-added emoji aliases ca, za, and pk
Diffstat (limited to 'webapp/components/post_view/reaction/reaction.jsx')
-rw-r--r-- | webapp/components/post_view/reaction/reaction.jsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/webapp/components/post_view/reaction/reaction.jsx b/webapp/components/post_view/reaction/reaction.jsx index f256a1fb5..673f8fd7f 100644 --- a/webapp/components/post_view/reaction/reaction.jsx +++ b/webapp/components/post_view/reaction/reaction.jsx @@ -93,6 +93,10 @@ export default class Reaction extends React.PureComponent { } render() { + if (!this.props.emojiImageUrl) { + return null; + } + let currentUserReacted = false; const users = []; const otherUsersCount = this.props.otherUsersCount; |