feat: Add production-safe logging for avatar debugging

This commit is contained in:
gpt-engineer-app[bot]
2025-10-13 16:57:29 +00:00
parent f5d059b5a5
commit 8b1758e5e9
2 changed files with 15 additions and 2 deletions

View File

@@ -83,6 +83,17 @@ export function AuthButtons() {
</>
);
}
// Debug logging for avatar rendering
console.log('[AuthButtons] Component render:', {
hasUser: !!user,
hasProfile: !!profile,
hasAvatarUrl: !!profile?.avatar_url,
avatarUrl: profile?.avatar_url,
displayName: profile?.display_name,
username: profile?.username,
loading
});
return <DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="ghost" className="relative h-8 w-8 rounded-full">