fix 'startsWith' call on non-string

This commit is contained in:
keyan 2024-05-06 11:26:19 -05:00
parent bc2155c7aa
commit 111053006a

View File

@ -197,7 +197,7 @@ export default memo(function Text ({ rel, imgproxyUrls, children, tab, itemId, o
</Link> </Link>
) )
} }
if (text.startsWith('@')) { if (text.startsWith?.('@')) {
return ( return (
<UserPopover name={text.replace('@', '')}> <UserPopover name={text.replace('@', '')}>
<Link <Link