From 778af15b2db648b2d828cc9d60c9df927cfd48b9 Mon Sep 17 00:00:00 2001 From: Aaron Yan Date: Mon, 9 Dec 2024 16:28:32 -1000 Subject: [PATCH] Add await and remove stepper test --- client/signup/controller.js | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/client/signup/controller.js b/client/signup/controller.js index 37f812292ac7b..094c220749c8d 100644 --- a/client/signup/controller.js +++ b/client/signup/controller.js @@ -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';