From 4b62e23a4f77a9c868838fcde4c76cf6bb7289a8 Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Tue, 12 May 2026 04:45:04 -0400 Subject: [PATCH] added style, fixed login issue --- frontend/src/contexts/AuthContext.jsx | 4 +++- frontend/src/index.css | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 {