mirror of
https://github.com/MODSetter/SurfSense.git
synced 2025-09-01 18:19:08 +00:00
Merge pull request #204 from masabinhok/fix-user-dropdown
fix(ui): Refactor UserDropdown.tsx to add safety check for user name
This commit is contained in:
commit
63d06031a3
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,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