Fix potential crash in InternalTeamTab due to unsafe string method

This commit is contained in:
CycroftX
2026-02-03 23:33:56 +05:30
parent 7834e8f0b2
commit 06dec50c9e

View File

@@ -61,7 +61,7 @@ export function InternalTeamTab() {
</TableCell>
<TableCell>
<Badge variant="outline" className="capitalize bg-secondary/50">
{user.role.replace('_', ' ')}
{(user.role || '').replace('_', ' ')}
</Badge>
</TableCell>
<TableCell>