Skip to content

Commit

Permalink
GD Signup:Fix preloading conditions (#81039)
Browse files Browse the repository at this point in the history
* Fix preloading conditions

* Remove invalid if condition
  • Loading branch information
ddc22 authored Aug 25, 2023
1 parent 4cf8aec commit c526e99
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions client/signup/steps/domains/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,24 +283,24 @@ class DomainsStep extends Component {
} )
: undefined;

/**
* If we do not select a paid domain.
* We want to pre load an experiment to show a plan upsell modal in the plans step
*/
if ( ! isPurchasingItem ) {
switch ( flowName ) {
case 'onboarding':
switch ( flowName ) {
case 'onboarding':
if ( isPurchasingItem ) {
loadExperimentAssignment( 'calypso_onboarding_plans_paid_domain_on_free_plan' );
} else {
loadExperimentAssignment(
'calypso_gf_signup_onboarding_free_free_dont_miss_out_modal_v3'
);
loadExperimentAssignment( 'calypso_onboarding_plans_paid_domain_on_free_plan' );
break;
case 'onboarding-pm':
}
break;
case 'onboarding-pm':
if ( isPurchasingItem ) {
loadExperimentAssignment( 'calypso_onboardingpm_plans_paid_domain_on_free_plan' );
} else {
loadExperimentAssignment(
'calypso_gf_signup_onboarding_pm_free_free_dont_miss_out_modal_v3'
);
loadExperimentAssignment( 'calypso_onboardingpm_plans_paid_domain_on_free_plan' );
}
}
}

suggestion && this.props.submitDomainStepSelection( suggestion, this.getAnalyticsSection() );
Expand Down

0 comments on commit c526e99

Please sign in to comment.