diff --git a/src/OnboardingSPA/components/StartOptions/index.js b/src/OnboardingSPA/components/StartOptions/index.js index efa27bcde..4f2fd8b0f 100644 --- a/src/OnboardingSPA/components/StartOptions/index.js +++ b/src/OnboardingSPA/components/StartOptions/index.js @@ -7,7 +7,6 @@ import { memo } from '@wordpress/element'; import { store as nfdOnboardingStore } from '../../store'; const StartOptions = ( { questionnaire, oldFlow, options } ) => { - const SITEGEN = 'sitegen'; const navigate = useNavigate(); const { brandConfig, migrationUrl, currentData } = useSelect( ( select ) => { @@ -56,7 +55,7 @@ const StartOptions = ( { questionnaire, oldFlow, options } ) => { switch ( flow ) { case 'sitebuild': return switchFlow( oldFlow ); - case SITEGEN: + case 'sitegen': return switchFlow( SITEGEN_FLOW ); case 'migration': return window.open( migrationUrl, '_blank' ); @@ -70,7 +69,7 @@ const StartOptions = ( { questionnaire, oldFlow, options } ) => {
{ options.map( ( tab, idx ) => { if ( - tab.flow === SITEGEN && + tab.flow === SITEGEN_FLOW && ! validateFlow( brandConfig, tab.flow ) ) { // Do not show the Sitegen AI option if not enabled for the customer