[FIX] Mentions crashing without username (#2374)
This commit is contained in:
parent
cc0d143534
commit
3fb253b3de
|
@ -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 = () => {
|
const handlePress = () => {
|
||||||
logEvent(events.ROOM_MENTION_GO_USER_INFO);
|
logEvent(events.ROOM_MENTION_GO_USER_INFO);
|
||||||
|
|
Loading…
Reference in New Issue