Skip to content

Commit

Permalink
!TOS when forbidden Bug LREN-CHUV#133
Browse files Browse the repository at this point in the history
  • Loading branch information
nicedexter committed Jun 16, 2020
1 parent 4d70eaa commit 14ea578
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Explore/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ export default ({
if (
!apiUser.state.loading &&
apiUser.state.authenticated &&
!apiUser.state.forbidden &&
!apiUser.state.agreeNDA
) {
history.push('/tos');
}
}, [
apiUser.state.agreeNDA,
apiUser.state.authenticated,
apiUser.state.forbidden,
apiUser.state.loading,
history
]);
Expand Down

0 comments on commit 14ea578

Please sign in to comment.