Skip to content

Commit

Permalink
Handle scenario with missing concierge chat
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciejSWM committed Mar 19, 2024
1 parent 3110d73 commit a1e12df
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/pages/OnboardingPurpose/BaseOnboardingPurpose.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ function BaseOnboardingPurpose({shouldUseNativeStyles}: BaseOnboardingPurposePro

Report.completeEngagementModal(CONST.ONBOARDING_CONCIERGE[selectedPurpose], selectedPurpose);

// Only navigate to concierge chat when central pane is visible
// Otherwise stay on the chats screen.
if (isSmallScreenWidth) {
if (!Report.getConciergeChatReportID()) {
Navigation.resetToHome();
} else if (isSmallScreenWidth) {
// Only navigate to concierge chat when central pane is visible
// Otherwise stay on the chats screen.
Navigation.navigate(ROUTES.ROOT);
} else {
Report.navigateToConciergeChat();
Expand Down

0 comments on commit a1e12df

Please sign in to comment.