Improve frontend auth handling

This commit is contained in:
2026-05-02 15:13:28 +02:00
parent f1fd72520a
commit 36a5911fe4
11 changed files with 126 additions and 47 deletions
+1 -7
View File
@@ -34,13 +34,7 @@ const Navbar = ({ userName, profilePictureUrl }: NavbarProps) => {
alt={userName + ' profile image'}
/>
<AvatarFallback className="rounded-lg">
{userName
? userName
.split(' ')
.map((n) => n[0])
.join('')
.toUpperCase()
: 'A'}
{userName ? userName.charAt(0).toUpperCase() : 'A'}
</AvatarFallback>
</Avatar>
</DropdownMenuTrigger>