From 198188689864b59cfdfd4d595dcda28aa20dd10b Mon Sep 17 00:00:00 2001 From: saranshbalyan-1234 Date: Fri, 3 Nov 2023 13:06:04 +0530 Subject: [PATCH] fix regression copy to clipboard --- src/libs/ReportUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/ReportUtils.js b/src/libs/ReportUtils.js index 885a13621ea4..58553acfee5c 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -4087,7 +4087,7 @@ function getIOUReportActionDisplayMessage(reportAction) { let displayMessage; if (originalMessage.type === CONST.IOU.REPORT_ACTION_TYPE.PAY) { const {IOUReportID} = originalMessage; - const {amount, currency} = originalMessage.IOUDetails; + const {amount, currency} = originalMessage.IOUDetails || originalMessage; const formattedAmount = CurrencyUtils.convertToDisplayString(amount, currency); const iouReport = getReport(IOUReportID); const payerName = isExpenseReport(iouReport) ? getPolicyName(iouReport) : getDisplayNameForParticipant(iouReport.managerID, true);