Skip to content

Commit 3edd54d

Browse files
authored
Merge pull request Expensify#67017 from MobileMage/fix/onboarding-refresh-path-issue
Fix onboarding flow path changes after page refresh
2 parents 69d27c0 + 30b55a9 commit 3edd54d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/libs/actions/Welcome/OnboardingFlow.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ function getOnboardingInitialPath(getOnboardingInitialPathParams: GetOnboardingI
118118
if (isIndividual) {
119119
Onyx.set(ONYXKEYS.ONBOARDING_CUSTOM_CHOICES, [CONST.ONBOARDING_CHOICES.PERSONAL_SPEND, CONST.ONBOARDING_CHOICES.EMPLOYER, CONST.ONBOARDING_CHOICES.CHAT_SPLIT]);
120120
}
121+
122+
if (onboardingInitialPath && state?.routes?.at(-1)?.name === NAVIGATORS.ONBOARDING_MODAL_NAVIGATOR) {
123+
return onboardingInitialPath;
124+
}
125+
121126
if (isUserFromPublicDomain && !onboardingValuesParam?.isMergeAccountStepCompleted) {
122127
return `/${ROUTES.ONBOARDING_WORK_EMAIL.route}`;
123128
}

0 commit comments

Comments
 (0)