diff --git a/app/containers/markdown/AtMention.js b/app/containers/markdown/AtMention.js index 580b9b168..56b2a0a93 100644 --- a/app/containers/markdown/AtMention.js +++ b/app/containers/markdown/AtMention.js @@ -39,7 +39,7 @@ const AtMention = React.memo(({ }; } - const user = mentions && mentions.length && mentions.find(m => m.username === mention); + const user = mentions?.find?.(m => m && m.username === mention); const handlePress = () => { logEvent(events.ROOM_MENTION_GO_USER_INFO);