fix: #2755 clicking more details on un-registered chat user throws exception (#2809)

Co-authored-by: thisProjects <wibbet@wobbet.com>
This commit is contained in:
Nathan
2023-03-13 02:40:39 +00:00
committed by GitHub
parent d537568749
commit 17afdb1997

View File

@@ -147,11 +147,10 @@ export const ChatModerationDetailsModal: FC<ChatModerationDetailsModalProps> = (
), ),
}, },
]; ];
return ( return (
<Spin spinning={loading}> <Spin spinning={loading}>
<UserColorBlock color={displayColor} /> <UserColorBlock color={displayColor} />
{scopes.map(scope => ( {scopes?.map(scope => (
<Tag key={scope}>{scope}</Tag> <Tag key={scope}>{scope}</Tag>
))} ))}
{authenticated && <Tag>Authenticated</Tag>} {authenticated && <Tag>Authenticated</Tag>}