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-12 19:40:39 -07:00
committed by GitHub
co-authored by thisProjects
parent d537568749
commit 17afdb1997
@@ -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>}