mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 18:19:08 +00:00
fix(ui): Refactor UserDropdown.tsx to add safety check for user name
This commit is contained in:
parent
abd06560a5
commit
014a161fe3
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ export function UserDropdown({
|
|||
>
|
||||
<Avatar className="h-8 w-8">
|
||||
<AvatarImage src={user.avatar} alt={user.name} />
|
||||
<AvatarFallback>{user.name.charAt(0).toUpperCase()}</AvatarFallback>
|
||||
<AvatarFallback>{user.name.charAt(0)?.toUpperCase() || '?'}</AvatarFallback>
|
||||
</Avatar>
|
||||
</Button>
|
||||
</DropdownMenuTrigger>
|
||||
|
|
Loading…
Add table
Reference in a new issue