[FIX] Prevent reaction map error (#1743)

This commit is contained in:
Diego Mello 2020-02-17 13:06:30 -03:00 committed by GitHub
parent 677b28818d
commit a200e9707e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ const Reaction = React.memo(({
const Reactions = React.memo(({ const Reactions = React.memo(({
reactions, user, baseUrl, onReactionPress, reactionInit, onReactionLongPress, getCustomEmoji, theme reactions, user, baseUrl, onReactionPress, reactionInit, onReactionLongPress, getCustomEmoji, theme
}) => { }) => {
if (!reactions || reactions.length === 0) { if (!Array.isArray(reactions) || reactions.length === 0) {
return null; return null;
} }
return ( return (