fix: redirect to email sign up on first login

This commit is contained in:
Oliver Eyton-Williams
2020-07-29 19:09:20 +02:00
committed by Mrugesh Mohapatra
parent 0642002005
commit 3dbe69707f
6 changed files with 53 additions and 61 deletions

View File

@@ -33,7 +33,7 @@ const mapDispatchToProps = {
tryToShowDonationModal
};
const RedirectAcceptPrivacyTerm = createRedirect('/accept-privacy-terms');
const RedirectEmailSignUp = createRedirect('/email-sign-up');
class LearnLayout extends Component {
componentDidMount() {
@@ -60,7 +60,7 @@ class LearnLayout extends Component {
}
if (isSignedIn && !acceptedPrivacyTerms) {
return <RedirectAcceptPrivacyTerm />;
return <RedirectEmailSignUp />;
}
return (