Fix potential crash in InternalTeamTab due to unsafe string method
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user