From 1e8a4b35dc707e1f387d7761b59bb582355c58b6 Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Fri, 3 Nov 2023 09:22:50 +0000 Subject: [PATCH] Merge pull request #30818 from saranshbalyan-1234/fix-regression-copy-to-clipboard fix regression copy to clipboard (cherry picked from commit f4988307b2b31855bc1c30b458cbd10048948fe3) --- 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 bec494b2e44b..6939b46d1533 100644 --- a/src/libs/ReportUtils.js +++ b/src/libs/ReportUtils.js @@ -4072,7 +4072,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);