Skip to content

Commit

Permalink
update message
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jul 27, 2023
1 parent ee5d96e commit 910b134
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -1223,14 +1223,12 @@ function getReportPreviewMessage(report, reportAction = {}) {
return Localize.translateLocal(translatePhraseKey, {amount: formattedAmount});
}

if (report.hasOutstandingIOU) {
return Localize.translateLocal('iou.payerOwesAmount', {payer: payerName, amount: formattedAmount});
}

if (report.isWaitingOnBankAccount) {
const submitterDisplayName = getDisplayNameForParticipant(report.ownerAccountID, true);
return Localize.translateLocal('iou.waitingOnBankAccount', {submitterDisplayName});
}

return Localize.translateLocal('iou.payerOwesAmount', {payer: payerName, amount: formattedAmount});
}

/**
Expand Down

0 comments on commit 910b134

Please sign in to comment.