Skip to content

Commit

Permalink
Merge pull request #41884 from bernhardoj/fix/41202-hold-unhold-threa…
Browse files Browse the repository at this point in the history
…d-system-message-title-doesnt-match-the-action-message

Fix thread header for hold/unhold system message is different from the actual system message
  • Loading branch information
neil-marcellini authored May 9, 2024
2 parents 974f6b5 + efad26d commit 548a23c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3072,6 +3072,12 @@ function getReportActionMessage(reportAction: ReportAction | EmptyObject, parent
if (isEmptyObject(reportAction)) {
return '';
}
if (reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.HOLD) {
return Localize.translateLocal('iou.heldExpense');
}
if (reportAction.actionName === CONST.REPORT.ACTIONS.TYPE.UNHOLD) {
return Localize.translateLocal('iou.unheldExpense');
}
if (ReportActionsUtils.isApprovedOrSubmittedReportAction(reportAction)) {
return ReportActionsUtils.getReportActionMessageText(reportAction);
}
Expand Down

0 comments on commit 548a23c

Please sign in to comment.