[FIX] Prevent reaction map error (#1743)
This commit is contained in:
parent
677b28818d
commit
a200e9707e
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue