Skip to content

Commit

Permalink
Add required depdency to useEffect to fix transition
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewGable committed Mar 15, 2024
1 parent 4313414 commit 9e5aa9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/LogOutPreviousUserPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ function LogOutPreviousUserPage({session, route, isAccountLoading}: LogOutPrevio

// We only want to run this effect once on mount (when the page first loads after transitioning from OldDot)
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [initialURL]);
}, [initialURL, isAccountLoading]);

return <FullScreenLoadingIndicator />;
}
Expand Down

0 comments on commit 9e5aa9d

Please sign in to comment.