Skip to content

Commit

Permalink
Add await and remove stepper test
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronyan committed Dec 10, 2024
1 parent 5b8af91 commit 778af15
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions client/signup/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,24 +217,24 @@ export default {

const isOnboardingFlow = flowName === 'onboarding';
if ( isOnboardingFlow ) {
loadExperimentAssignment( 'calypso_signup_onboarding_aa_test' );
const stepperOnboardingExperimentAssignment = await loadExperimentAssignment(
'calypso_signup_onboarding_stepper_flow_2'
);
if ( stepperOnboardingExperimentAssignment.variationName === 'stepper' ) {
window.location =
getStepUrl(
flowName,
getStepName( context.params ),
getStepSectionName( context.params ),
localeFromParams ?? localeFromStore,
null,
'/setup'
) +
( context.querystring ? '?' + context.querystring : '' ) +
( context.hashstring ? '#' + context.hashstring : '' );
return;
}
await loadExperimentAssignment( 'calypso_signup_onboarding_aa_test' );
// const stepperOnboardingExperimentAssignment = await loadExperimentAssignment(
// 'calypso_signup_onboarding_stepper_flow_2'
// );
// if ( stepperOnboardingExperimentAssignment.variationName === 'stepper' ) {
// window.location =
// getStepUrl(
// flowName,
// getStepName( context.params ),
// getStepSectionName( context.params ),
// localeFromParams ?? localeFromStore,
// null,
// '/setup'
// ) +
// ( context.querystring ? '?' + context.querystring : '' ) +
// ( context.hashstring ? '#' + context.hashstring : '' );
// return;
// }
}

// const isOnboardingFlow = flowName === 'onboarding';
Expand Down

0 comments on commit 778af15

Please sign in to comment.