From 89672882b951649473c895138911f186e4b3b3ea Mon Sep 17 00:00:00 2001 From: Nuckyz <61953774+Nuckyz@users.noreply.github.com> Date: Fri, 27 Oct 2023 14:33:18 -0300 Subject: [PATCH] PermViewer: Fix incorrectly displaying some role names as Unknown Role --- .../permissionsViewer/components/RolesAndUsersPermissions.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/permissionsViewer/components/RolesAndUsersPermissions.tsx b/src/plugins/permissionsViewer/components/RolesAndUsersPermissions.tsx index 8d4b15790..629880467 100644 --- a/src/plugins/permissionsViewer/components/RolesAndUsersPermissions.tsx +++ b/src/plugins/permissionsViewer/components/RolesAndUsersPermissions.tsx @@ -135,9 +135,9 @@ function RolesAndUsersPermissionsComponent({ permissions, guild, modalProps, hea { 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" : ( @owner