PermViewer: Fix incorrectly displaying some role names as Unknown Role

This commit is contained in:
Nuckyz 2023-10-27 14:33:18 -03:00
parent e05c630a54
commit 89672882b9
No known key found for this signature in database
GPG Key ID: 440BF8296E1C4AD9

@ -135,9 +135,9 @@ function RolesAndUsersPermissionsComponent({ permissions, guild, modalProps, hea
<Text variant="text-md/normal">
{
permission.type === PermissionType.Role
? role?.name || "Unknown Role"
? role?.name ?? "Unknown Role"
: permission.type === PermissionType.User
? (user && getUniqueUsername(user)) || "Unknown User"
? (user && getUniqueUsername(user)) ?? "Unknown User"
: (
<Flex style={{ gap: "0.2em", justifyItems: "center" }}>
@owner