Skip to content

Commit

Permalink
Merge pull request #43648 from ishpaul777/fix/onboarding-modal-hide-o…
Browse files Browse the repository at this point in the history
…n-refresh
  • Loading branch information
mountiny authored Jun 14, 2024
2 parents 9912ae8 + c15d5ce commit ab7060c
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ function OnboardingModalNavigator() {
const styles = useThemeStyles();
const {shouldUseNarrowLayout} = useOnboardingLayout();
const [hasCompletedGuidedSetupFlow] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {
selector: (onboarding) => !Array.isArray(onboarding) && (onboarding?.hasCompletedGuidedSetupFlow ?? true),
selector: (onboarding) => {
// onboarding is an array for old accounts and accounts created from olddot
if (Array.isArray(onboarding)) {
return true;
}
return onboarding?.hasCompletedGuidedSetupFlow;
},
});

useEffect(() => {
Expand Down

0 comments on commit ab7060c

Please sign in to comment.