You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/libs/ReportUtils.ts
+14-3Lines changed: 14 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -11557,6 +11557,12 @@ type PrepareOnboardingOnyxDataParams = {
11557
11557
onboardingPurposeSelected?: OnboardingPurpose;
11558
11558
// TODO: isSelfTourViewed will be required eventually. Refactor issue: https://github.com/Expensify/App/issues/66424
11559
11559
isSelfTourViewed?: boolean;
11560
+
/** The concierge chat report, looked up by conciergeReportID. Falls back to getChatByParticipants using the deprecated module-level Onyx data while the refactor is in progress. */
11561
+
conciergeChat?: OnyxEntry<Report>;
11562
+
/** The admins chat report, looked up by adminsChatReportID. Falls back to the deprecated module-level Onyx data while the refactor is in progress. */
11563
+
adminsChatReport?: OnyxEntry<Report>;
11564
+
/** The self-DM report, looked up by ONYXKEYS.SELF_DM_REPORT_ID. Falls back to the deprecated module-level Onyx data while the refactor is in progress. */
11565
+
selfDMReport?: OnyxEntry<Report>;
11560
11566
};
11561
11567
11562
11568
function prepareOnboardingOnyxData({
@@ -11571,6 +11577,9 @@ function prepareOnboardingOnyxData({
11571
11577
isInvitedAccountant,
11572
11578
onboardingPurposeSelected,
11573
11579
isSelfTourViewed,
11580
+
conciergeChat: conciergeChatParam,
11581
+
adminsChatReport: adminsChatReportParam,
11582
+
selfDMReport: selfDMReportParam,
11574
11583
}: PrepareOnboardingOnyxDataParams) {
11575
11584
if (engagementChoice === CONST.ONBOARDING_CHOICES.PERSONAL_SPEND) {
11576
11585
// eslint-disable-next-line no-param-reassign
@@ -11585,8 +11594,9 @@ function prepareOnboardingOnyxData({
// eslint-disable-next-line @typescript-eslint/no-unsafe-type-assertion -- targetChatReport may be a stub with only reportID/policyID/chatType; the consumers below handle missing fields gracefully.
11994
+
const report = targetChatReport as OnyxEntry<Report>;
0 commit comments