Skip to content

Commit

Permalink
My Jetpack: fix step while assignment is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
IanRamosC committed Nov 1, 2024
1 parent 9406561 commit ded2a7f
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const WelcomeFlow: FC< Props > = ( {
const [ prevStep, setPrevStep ] = useState( '' );

const currentStep = useMemo( () => {
if ( ! siteIsRegistered ) {
if ( ! siteIsRegistered || welcomeFlowExperiment.isLoading ) {
return 'connection';
} else if ( ! isProcessingEvaluation ) {
if ( ! recommendedModules && ! isJetpackUserNew() ) {
Expand All @@ -56,10 +56,6 @@ const WelcomeFlow: FC< Props > = ( {
return null;
}

if ( welcomeFlowExperiment.isLoading ) {
return 'evaluation-processing';
}

// Otherwise, it means user is either new or just repeats the recommendation
return 'evaluation';
}
Expand Down

0 comments on commit ded2a7f

Please sign in to comment.