Skip to content

Commit

Permalink
Merge pull request #19 from reedoooo/dev19
Browse files Browse the repository at this point in the history
  • Loading branch information
reedoooo authored Nov 25, 2023
2 parents 83e5a81 + 29b2ef0 commit 6c2236d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]);

Expand Down

0 comments on commit 6c2236d

Please sign in to comment.