fix: redirect to email sign up on first login
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
0642002005
commit
3dbe69707f
@@ -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 (
|
||||
|
Reference in New Issue
Block a user