Refactor: Simplify auth loading state

This commit is contained in:
gpt-engineer-app[bot]
2025-10-13 17:06:03 +00:00
parent 8b54a2303b
commit 083964ff41
2 changed files with 10 additions and 59 deletions

View File

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