Skip to content

Commit

Permalink
fix: fallback image
Browse files Browse the repository at this point in the history
  • Loading branch information
nnivxix committed Oct 27, 2024
1 parent 13fa99d commit 6551dba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ export default function Navbar() {
<AvatarImage
src={gravatarUrl(account?.avatar?.gravatar.hash ?? "guest")}
/>
<AvatarFallback>{"G"}</AvatarFallback>
<AvatarFallback>
{account?.username.at(0) ?? "G"}
</AvatarFallback>
</Avatar>
</DropdownMenuTrigger>
<DropdownMenuContent align="end">
Expand Down

0 comments on commit 6551dba

Please sign in to comment.