From 29b2ef023b6e27aa18901b7cbc7acb49a0285aae Mon Sep 17 00:00:00 2001 From: Reed Vogt Date: Sat, 25 Nov 2023 12:29:03 -0800 Subject: [PATCH] add --- src/App.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/App.js b/src/App.js index 7f230e7..798e0fe 100644 --- a/src/App.js +++ b/src/App.js @@ -55,13 +55,14 @@ const App = () => { }; useEffect(() => { - // Open the login dialog and pause splash page if there's no userId if (!userId || typeof userId !== 'string') { + // Invalid or missing userId, show login dialog and hide splash page setShowLoginDialog(true); - setIsLoading(true); // Continue showing splash page + setIsLoading(false); } else { + // Valid userId, hide login dialog and splash page setShowLoginDialog(false); - setIsLoading(false); // Hide splash page + setIsLoading(false); } }, [userId]);