From 4a9cc11d7d3f02e975b955cb310cd3b1249aa5c9 Mon Sep 17 00:00:00 2001 From: Reed Vogt Date: Sat, 25 Nov 2023 11:18:07 -0800 Subject: [PATCH] add --- src/App.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/App.js b/src/App.js index db8da5c..7f0f8ce 100644 --- a/src/App.js +++ b/src/App.js @@ -52,7 +52,6 @@ const App = () => { const handleLoginSuccess = (isLoggedIn, userId) => { setShowLoginDialog(false); setIsLoading(false); - // Perform other actions after login }; useEffect(() => { @@ -78,10 +77,10 @@ const App = () => { }); } }, [userId, fetchAllCollectionsForUser, setIsLoading, selectedCollection]); - // useEffect(() => { - // console.log('Checking userId in useEffect:', userId); - // setShowLoginDialog(!userId); - // }, [userId]); + useEffect(() => { + console.log('Checking userId in useEffect:', userId); + setShowLoginDialog(!userId); + }, [userId]); useEffect(() => { if (userId && typeof userId === 'string') { fetchAllDecksForUser()