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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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