committed by
GitHub
parent
186484defa
commit
78693f4fc6
@@ -9,7 +9,7 @@ import { setCookie } from '../data/utils';
|
||||
|
||||
function RedirectLogistration(props) {
|
||||
const {
|
||||
finishAuthUrl, redirectUrl, redirectToWelcomePage, success, optionalFields,
|
||||
finishAuthUrl, redirectUrl, redirectToProgressiveProfilingPage, success, optionalFields,
|
||||
} = props;
|
||||
let finalRedirectUrl = '';
|
||||
|
||||
@@ -25,7 +25,7 @@ function RedirectLogistration(props) {
|
||||
}
|
||||
|
||||
// Redirect to Progressive Profiling after successful registration
|
||||
if (redirectToWelcomePage) {
|
||||
if (redirectToProgressiveProfilingPage) {
|
||||
// TODO: Do we still need this cookie?
|
||||
setCookie('van-504-returning-user', true);
|
||||
const registrationResult = { redirectUrl: finalRedirectUrl, success };
|
||||
@@ -50,7 +50,7 @@ RedirectLogistration.defaultProps = {
|
||||
finishAuthUrl: null,
|
||||
success: false,
|
||||
redirectUrl: '',
|
||||
redirectToWelcomePage: false,
|
||||
redirectToProgressiveProfilingPage: false,
|
||||
optionalFields: {},
|
||||
};
|
||||
|
||||
@@ -58,7 +58,7 @@ RedirectLogistration.propTypes = {
|
||||
finishAuthUrl: PropTypes.string,
|
||||
success: PropTypes.bool,
|
||||
redirectUrl: PropTypes.string,
|
||||
redirectToWelcomePage: PropTypes.bool,
|
||||
redirectToProgressiveProfilingPage: PropTypes.bool,
|
||||
optionalFields: PropTypes.shape({}),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user