From a200e9707eff719450b4403500a4c359bbe9e040 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Mon, 17 Feb 2020 13:06:30 -0300 Subject: [PATCH] [FIX] Prevent reaction map error (#1743) --- app/containers/message/Reactions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/message/Reactions.js b/app/containers/message/Reactions.js index f6fab3457..1614b1b7a 100644 --- a/app/containers/message/Reactions.js +++ b/app/containers/message/Reactions.js @@ -56,7 +56,7 @@ const Reaction = React.memo(({ const Reactions = React.memo(({ reactions, user, baseUrl, onReactionPress, reactionInit, onReactionLongPress, getCustomEmoji, theme }) => { - if (!reactions || reactions.length === 0) { + if (!Array.isArray(reactions) || reactions.length === 0) { return null; } return (