From 06dec50c9e595383e21eedeb5a1b88ca55c1a4f3 Mon Sep 17 00:00:00 2001 From: CycroftX Date: Tue, 3 Feb 2026 23:33:56 +0530 Subject: [PATCH] Fix potential crash in InternalTeamTab due to unsafe string method --- src/features/users/components/InternalTeamTab.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/users/components/InternalTeamTab.tsx b/src/features/users/components/InternalTeamTab.tsx index 9485ba9..3b31a4a 100644 --- a/src/features/users/components/InternalTeamTab.tsx +++ b/src/features/users/components/InternalTeamTab.tsx @@ -61,7 +61,7 @@ export function InternalTeamTab() { - {user.role.replace('_', ' ')} + {(user.role || '').replace('_', ' ')}