Skip to content

Commit

Permalink
Remove checks for IOU
Browse files Browse the repository at this point in the history
  • Loading branch information
aldo-expensify committed Jun 24, 2024
1 parent 5b51d97 commit 74744d6
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2171,9 +2171,6 @@ function getDeletedParentActionMessageForChatReport(reportAction: OnyxEntry<Repo
* Returns the preview message for `REIMBURSEMENT_QUEUED` action
*/
function getReimbursementQueuedActionMessage(reportAction: OnyxEntry<ReportAction>, reportOrID: OnyxEntry<Report> | string, shouldUseShortDisplayName = true): string {
if (!ReportActionsUtils.isMoneyRequestAction(reportAction)) {
return '';
}
const report = typeof reportOrID === 'string' ? allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportOrID}`] : reportOrID;
const submitterDisplayName = getDisplayNameForParticipant(report?.ownerAccountID, shouldUseShortDisplayName) ?? '';
const originalMessage = ReportActionsUtils.getOriginalMessage(reportAction);
Expand All @@ -2195,9 +2192,6 @@ function getReimbursementDeQueuedActionMessage(
reportOrID: OnyxEntry<Report> | 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;
Expand Down

0 comments on commit 74744d6

Please sign in to comment.