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 } ) => {