Skip to content

Commit

Permalink
Update ui/contexts/AuthContext.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Simon <footless@gmail.com>
  • Loading branch information
AlinaGoaga and foot committed Feb 23, 2022
1 parent 099cde8 commit 61b1114
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ui/contexts/AuthContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ export default function AuthContextProvider({ children }) {
}, []);

React.useEffect(() => {
if (!authFlag) {
return null;
}
getUserInfo();
return history.listen(getUserInfo);
}, [getUserInfo, history]);
Expand Down

0 comments on commit 61b1114

Please sign in to comment.