Unverified Commit a200e970 authored by Diego Mello's avatar Diego Mello Committed by GitHub
Browse files

[FIX] Prevent reaction map error (#1743)

parent 677b2881
......@@ -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 (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment