Skip to content

Commit

Permalink
Merge pull request #17 from reedoooo/dev19
Browse files Browse the repository at this point in the history
  • Loading branch information
reedoooo authored Nov 25, 2023
2 parents b6266f1 + 4a9cc11 commit c25f047
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ const App = () => {
const handleLoginSuccess = (isLoggedIn, userId) => {
setShowLoginDialog(false);
setIsLoading(false);
// Perform other actions after login
};

useEffect(() => {
Expand All @@ -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()
Expand Down

0 comments on commit c25f047

Please sign in to comment.