diff --git a/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js b/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js index 42591ede1..0ec67b57f 100644 --- a/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js +++ b/src/OnboardingSPA/components/NewfoldInterfaceSkeleton/SiteGen/index.js @@ -137,14 +137,15 @@ const SiteGen = () => { setCurrentOnboardingData( currentData ); // Get the homepages and set that in flow - const response = await getHomepages( - currentData.sitegen.siteDetails.prompt + getHomepages( currentData.sitegen.siteDetails.prompt ).then( + ( response ) => { + if ( response.body ) { + currentData.sitegen.homepages.data = + response.body; + } + currentData.sitegen.siteGenMetaStatus.currentStatus += 1; + } ); - - if ( response.body ) { - currentData.sitegen.homepages.data = response.body; - } - currentData.sitegen.siteGenMetaStatus.currentStatus += 1; } // Sync the current request changed to State setCurrentOnboardingData( currentData );