Skip to content

Commit

Permalink
fix copy text for split action
Browse files Browse the repository at this point in the history
  • Loading branch information
hungvu193 committed Nov 2, 2023
1 parent 3db5ff4 commit 031dcf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -4068,6 +4068,7 @@ function getParticipantsIDs(report) {
*/
function getIOUReportActionDisplayMessage(reportAction) {
const originalMessage = _.get(reportAction, 'originalMessage', {});
const isSplitAction = ReportActionsUtils.isSplitBillAction(reportAction);
let displayMessage;
if (originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY) {
const {IOUReportID} = originalMessage;
Expand Down Expand Up @@ -4099,7 +4100,7 @@ function getIOUReportActionDisplayMessage(reportAction) {
amount: formattedAmount,
});
} else {
displayMessage = Localize.translateLocal('iou.requestedAmount', {
displayMessage = Localize.translateLocal(isSplitAction ? 'iou.didSplitAmount' : 'iou.requestedAmount', {
formattedAmount,
comment,
});
Expand Down

0 comments on commit 031dcf2

Please sign in to comment.