Fix: Synchronize user and profile state updates

This commit is contained in:
gpt-engineer-app[bot]
2025-10-13 17:01:15 +00:00
parent 8b1758e5e9
commit daf4f6bf19
2 changed files with 7 additions and 6 deletions

View File

@@ -42,8 +42,8 @@ export function AuthButtons() {
}
};
// Show loading skeleton during auth check
if (loading) {
// Show loading skeleton during auth check OR when user exists but profile hasn't loaded yet
if (loading || (user && !profile)) {
return (
<div className="flex gap-2 items-center">
<div className="h-8 w-16 bg-muted animate-pulse rounded" />