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;