Skip to content

Commit

Permalink
fix returning user bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wbglaeser committed Jan 24, 2025
1 parent 4dd9071 commit 002b38e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui/screens/info-pages/InfoPageRouter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ const InfoPageRouter = () => {

useEffect(() => {
if (userStatus === UserStatus.USER_EXISTS) {
updateUserId("ff:quick-check-user");
navigate("/returning-user");
}

if (userStatus === UserStatus.USER_DOES_NOT_EXIST) {
initNewUser();
navigate("/privacy-info");
}
}, [userStatus, navigate, initNewUser]);
}, [userStatus, navigate, initNewUser, updateUserId]);

return null;
};
Expand Down

0 comments on commit 002b38e

Please sign in to comment.