Skip to content

Commit ab7060c

Browse files
authored
Merge pull request #43648 from ishpaul777/fix/onboarding-modal-hide-on-refresh
2 parents 9912ae8 + c15d5ce commit ab7060c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/libs/Navigation/AppNavigator/Navigators/OnboardingModalNavigator.tsx

+7-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,13 @@ function OnboardingModalNavigator() {
2626
const styles = useThemeStyles();
2727
const {shouldUseNarrowLayout} = useOnboardingLayout();
2828
const [hasCompletedGuidedSetupFlow] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {
29-
selector: (onboarding) => !Array.isArray(onboarding) && (onboarding?.hasCompletedGuidedSetupFlow ?? true),
29+
selector: (onboarding) => {
30+
// onboarding is an array for old accounts and accounts created from olddot
31+
if (Array.isArray(onboarding)) {
32+
return true;
33+
}
34+
return onboarding?.hasCompletedGuidedSetupFlow;
35+
},
3036
});
3137

3238
useEffect(() => {

0 commit comments

Comments
 (0)