Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Jan 17, 2024
1 parent acd31f7 commit a447a6f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/OnboardingSPA/components/StartOptions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) => {
Expand Down Expand Up @@ -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' );
Expand All @@ -70,7 +69,7 @@ const StartOptions = ( { questionnaire, oldFlow, options } ) => {
<div className="nfd-onboarding-sitegen-options__container">
{ 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
Expand Down

0 comments on commit a447a6f

Please sign in to comment.