Skip to content

Commit ea71f7e

Browse files
committed
don't navigate user to anywhere in small screen
1 parent 29e4c54 commit ea71f7e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/pages/OnboardingPersonalDetails/BaseOnboardingPersonalDetails.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ function BaseOnboardingPersonalDetails({currentUserPersonalDetails, shouldUseNat
7070

7171
// Only navigate to concierge chat when central pane is visible
7272
// Otherwise stay on the chats screen.
73-
if (isSmallScreenWidth) {
74-
Navigation.navigate(ROUTES.HOME);
75-
} else if (AccountUtils.isAccountIDOddNumber(accountID ?? 0)) {
76-
Report.navigateToSystemChat();
77-
} else {
78-
Report.navigateToConciergeChat();
73+
if (!isSmallScreenWidth) {
74+
if (AccountUtils.isAccountIDOddNumber(accountID ?? 0)) {
75+
Report.navigateToSystemChat();
76+
} else {
77+
Report.navigateToConciergeChat();
78+
}
7979
}
8080

8181
// Small delay purely due to design considerations,

0 commit comments

Comments
 (0)