diff --git a/src/OnboardingSPA/data/flows/default.js b/src/OnboardingSPA/data/flows/default.js index a5d1c865c..7ace3da04 100644 --- a/src/OnboardingSPA/data/flows/default.js +++ b/src/OnboardingSPA/data/flows/default.js @@ -22,9 +22,7 @@ export const initialChapters = [ demographic, design, layoutContent, features ]; export const getSteps = ( chapters = initialChapters ) => { let steps = []; - if ( - validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) - ) { + if ( validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) ) { steps.push( stepTheFork ); } steps.push( stepWelcome ); @@ -40,9 +38,7 @@ export const getSteps = ( chapters = initialChapters ) => { export const getRoutes = ( chapters = initialChapters ) => { let routes = [ ...pages ]; - if ( - validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) - ) { + if ( validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) ) { routes.push( stepTheFork ); } routes.push( stepWelcome ); diff --git a/src/OnboardingSPA/data/flows/ecommerce.js b/src/OnboardingSPA/data/flows/ecommerce.js index a63543778..687358b89 100644 --- a/src/OnboardingSPA/data/flows/ecommerce.js +++ b/src/OnboardingSPA/data/flows/ecommerce.js @@ -34,9 +34,7 @@ export const initialChapters = [ export const getSteps = ( chapters = initialChapters ) => { let steps = []; - if ( - validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) - ) { + if ( validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) ) { steps.push( stepTheFork ); } @@ -56,9 +54,7 @@ export const getSteps = ( chapters = initialChapters ) => { export const getRoutes = ( chapters = initialChapters ) => { let routes = [ ...pages ]; - if ( - validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) - ) { + if ( validateFlow( window.nfdOnboarding.currentBrand.config, SITEGEN_FLOW ) ) { routes.push( stepTheFork ); } routes.push( stepWelcome ); diff --git a/src/OnboardingSPA/steps/TheFork/index.js b/src/OnboardingSPA/steps/TheFork/index.js index 1ee659af7..2002aa8fa 100644 --- a/src/OnboardingSPA/steps/TheFork/index.js +++ b/src/OnboardingSPA/steps/TheFork/index.js @@ -17,11 +17,14 @@ import getContents from './contents'; import SitegenAiStateHandler from '../../components/StateHandlers/SitegenAi'; const TheFork = () => { - const { migrationUrl } = useSelect( ( select ) => { - return { - migrationUrl: select( nfdOnboardingStore ).getMigrationUrl(), - }; - } ); + const { migrationUrl } = useSelect( + ( select ) => { + return { + migrationUrl: select( nfdOnboardingStore ).getMigrationUrl(), + + }; + } + ); const { setIsHeaderEnabled,