From 1c233a3c3c358942b53969d4bc54f78245a8ca83 Mon Sep 17 00:00:00 2001 From: Saransh Balyan <57568571+saranshbalyan-1234@users.noreply.github.com> Date: Tue, 31 Oct 2023 21:01:47 +0530 Subject: [PATCH] fix clipboard in report utils --- src/libs/ReportUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 21c29a07ebae..94b2f5a70174 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -4052,7 +4052,8 @@ function getIOUReportActionDisplayMessage(reportAction) { const originalMessage = _.get(reportAction, 'originalMessage', {}); let displayMessage; if (originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY) { - const {amount, currency, IOUReportID} = originalMessage; + const {IOUReportID} = originalMessage; + const {amount, currency} = originalMessage.IOUDetails; const formattedAmount = CurrencyUtils.convertToDisplayString(amount, currency); const iouReport = getReport(IOUReportID); const payerName = isExpenseReport(iouReport) ? getPolicyName(iouReport) : getDisplayNameForParticipant(iouReport.managerID, true);