Skip to content

Commit

Permalink
If user bail at checkout and remove the items, let's move them to lau…
Browse files Browse the repository at this point in the history
…nchpad
  • Loading branch information
paulopmt1 committed Jan 31, 2025
1 parent 7dd6727 commit acb31eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/landing/stepper/declarative-flow/onboarding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,14 @@ const onboarding: Flow = {

const { isEligible: isBigSkyEligible } = useIsBigSkyEligible();
const isDesignChoicesStepEnabled = isBigSkyEligible && isGoalsAtFrontExperiment;
const skippedCheckout = useQuery().get( 'skippedCheckout' );

const getPostCheckoutDestination = ( providedDependencies: ProvidedDependencies ) => {
if (
createWithBigSky &&
config.isEnabled( 'onboarding/big-sky-before-plans' ) &&
isGoalsAtFrontExperiment
isGoalsAtFrontExperiment &&
! skippedCheckout
) {
return addQueryArgs( '/setup/site-setup/launch-big-sky', {
siteSlug: providedDependencies.siteSlug,
Expand Down

0 comments on commit acb31eb

Please sign in to comment.