From acd31f7c014dc86472867236ede0013e20ada6c7 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 17 Jan 2024 13:05:49 +0530 Subject: [PATCH] More --- src/OnboardingSPA/components/StartOptions/index.js | 4 ++-- src/OnboardingSPA/steps/TheFork/contents.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/OnboardingSPA/components/StartOptions/index.js b/src/OnboardingSPA/components/StartOptions/index.js index 3f97d74bb..efa27bcde 100644 --- a/src/OnboardingSPA/components/StartOptions/index.js +++ b/src/OnboardingSPA/components/StartOptions/index.js @@ -54,7 +54,7 @@ const StartOptions = ( { questionnaire, oldFlow, options } ) => { }; const selectFlow = ( flow ) => { switch ( flow ) { - case 'onboarding': + case 'sitebuild': return switchFlow( oldFlow ); case SITEGEN: return switchFlow( SITEGEN_FLOW ); @@ -71,7 +71,7 @@ const StartOptions = ( { questionnaire, oldFlow, options } ) => { { options.map( ( tab, idx ) => { if ( tab.flow === SITEGEN && - ! validateFlow( brandConfig, SITEGEN_FLOW ) + ! validateFlow( brandConfig, tab.flow ) ) { // Do not show the Sitegen AI option if not enabled for the customer return false; diff --git a/src/OnboardingSPA/steps/TheFork/contents.js b/src/OnboardingSPA/steps/TheFork/contents.js index 3677e7edc..905a7679b 100644 --- a/src/OnboardingSPA/steps/TheFork/contents.js +++ b/src/OnboardingSPA/steps/TheFork/contents.js @@ -15,7 +15,7 @@ const getContents = () => { "We'll stay out of your way.", 'wp-module-onboarding' ), - flow: 'onboarding', + flow: 'sitebuild', }, { title: __( ' Website Creator', 'wp-module-onboarding' ),