mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 00:51:12 -05:00
Fix avatar loading by preventing profile state race condition
This commit is contained in:
@@ -97,7 +97,7 @@ export function AuthButtons() {
|
||||
return <DropdownMenu>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button variant="ghost" className="relative h-8 w-8 rounded-full">
|
||||
<Avatar className="h-8 w-8">
|
||||
<Avatar className="h-8 w-8" key={profile?.avatar_url || 'fallback'}>
|
||||
<AvatarImage
|
||||
src={profile?.avatar_url || undefined}
|
||||
alt={profile?.display_name || profile?.username || user.email || 'User avatar'}
|
||||
|
||||
Reference in New Issue
Block a user