mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-21 11:51:14 -05:00
Refactor: Simplify auth loading state
This commit is contained in:
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user