From 92dac2c4ea0c151014ebd292801f77b7791d1055 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Mon, 24 Jun 2024 18:21:23 -0600 Subject: [PATCH] Merge pull request #44357 from Expensify/aldo_fix-infinite-loading-bug Remove checks for IOU (cherry picked from commit 522eab780c7b2c4eef862090f33a1b3d54d6bb1a) --- src/libs/ReportUtils.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/libs/ReportUtils.ts b/src/libs/ReportUtils.ts index 0c4fd9c83faa..a5433d3b9681 100644 --- a/src/libs/ReportUtils.ts +++ b/src/libs/ReportUtils.ts @@ -2170,10 +2170,11 @@ function getDeletedParentActionMessageForChatReport(reportAction: OnyxEntry, reportOrID: OnyxEntry | string, shouldUseShortDisplayName = true): string { - if (!ReportActionsUtils.isMoneyRequestAction(reportAction)) { - return ''; - } +function getReimbursementQueuedActionMessage( + reportAction: OnyxEntry>, + reportOrID: OnyxEntry | string, + shouldUseShortDisplayName = true, +): string { const report = typeof reportOrID === 'string' ? allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportOrID}`] : reportOrID; const submitterDisplayName = getDisplayNameForParticipant(report?.ownerAccountID, shouldUseShortDisplayName) ?? ''; const originalMessage = ReportActionsUtils.getOriginalMessage(reportAction); @@ -2195,9 +2196,6 @@ function getReimbursementDeQueuedActionMessage( reportOrID: OnyxEntry | EmptyObject | string, isLHNPreview = false, ): string { - if (!ReportActionsUtils.isReimbursementDeQueuedAction(reportAction)) { - return ''; - } const report = typeof reportOrID === 'string' ? allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportOrID}`] : reportOrID; const originalMessage = ReportActionsUtils.getOriginalMessage(reportAction); const amount = originalMessage?.amount;