Commit 57ff0e4
committed
Fix onboarding loop for Track/Personal Spend path when Concierge report not in collection
When getChatByParticipants fails to find the Concierge 1:1 chat in
deprecatedAllReports (common for brand-new accounts during onboarding),
fall back to using the module-level conciergeReportIDOnyxConnect which
is populated via Onyx.connect to CONCIERGE_REPORT_ID.
Without this fallback, prepareOnboardingOnyxData returns undefined,
completeOnboarding bails out without sending COMPLETE_GUIDED_SETUP,
hasCompletedGuidedSetupFlow stays false, but navigateAfterOnboarding
still dismisses the modal. The OnboardingGuard then redirects back,
creating an infinite loop.
Made-with: Cursor1 parent 80b61a0 commit 57ff0e4
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11728 | 11728 | | |
11729 | 11729 | | |
11730 | 11730 | | |
| 11731 | + | |
| 11732 | + | |
| 11733 | + | |
11731 | 11734 | | |
11732 | 11735 | | |
11733 | | - | |
| 11736 | + | |
11734 | 11737 | | |
11735 | 11738 | | |
11736 | 11739 | | |
| |||
0 commit comments