diff --git a/frontend/src/contexts/AuthContext.jsx b/frontend/src/contexts/AuthContext.jsx index 3505bc6..3e2d2ae 100644 --- a/frontend/src/contexts/AuthContext.jsx +++ b/frontend/src/contexts/AuthContext.jsx @@ -42,10 +42,12 @@ export function AuthProvider({ children }) { useEffect(() => { const unsubscribe = onAuthStateChanged(auth, async (user) => { - setCurrentUser(user); if (user) { + setLoading(true); + setCurrentUser(user); await fetchAccount(); } else { + setCurrentUser(null); setUserTier("free"); setTierLimits(DEFAULT_TIER_LIMITS); setIsSubscribed(false); diff --git a/frontend/src/index.css b/frontend/src/index.css index 83fad05..919f5e0 100644 --- a/frontend/src/index.css +++ b/frontend/src/index.css @@ -82,8 +82,10 @@ button { .page { max-width: 800px; + height: 100%; margin: 0 auto; padding: 2rem; + background-color: red; } .page--wide {