Skip to content

Commit d3dafef

Browse files
committed
Fix: 'Canceled the payment' message thread header shows 'The reimbursement was cancelled'
1 parent eae70cf commit d3dafef

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/libs/ReportUtils.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ import {
189189
isOldDotReportAction,
190190
isPendingRemove,
191191
isPolicyChangeLogAction,
192+
isReimbursementDeQueuedOrCanceledAction,
192193
isReimbursementQueuedAction,
193194
isRenamedAction,
194195
isReopenedAction,
@@ -4623,6 +4624,10 @@ function getReportActionMessage({
46234624
});
46244625
}
46254626

4627+
if (isReimbursementDeQueuedOrCanceledAction(reportAction)) {
4628+
return getReimbursementDeQueuedOrCanceledActionMessage(reportAction, getReportOrDraftReport(reportID, reports));
4629+
}
4630+
46264631
return parseReportActionHtmlToText(reportAction, reportID, childReportID);
46274632
}
46284633

0 commit comments

Comments
 (0)