Fix potential crash in InternalTeamTab due to unsafe string method
This commit is contained in:
@@ -61,7 +61,7 @@ export function InternalTeamTab() {
|
|||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
<Badge variant="outline" className="capitalize bg-secondary/50">
|
<Badge variant="outline" className="capitalize bg-secondary/50">
|
||||||
{user.role.replace('_', ' ')}
|
{(user.role || '').replace('_', ' ')}
|
||||||
</Badge>
|
</Badge>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
<TableCell>
|
<TableCell>
|
||||||
|
|||||||
Reference in New Issue
Block a user