Skip to content

Commit

Permalink
Merge pull request #30818 from saranshbalyan-1234/fix-regression-copy…
Browse files Browse the repository at this point in the history
…-to-clipboard

fix regression copy to clipboard

(cherry picked from commit f498830)
  • Loading branch information
Beamanator authored and OSBotify committed Nov 3, 2023
1 parent 5a8ad32 commit 1e8a4b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/ReportUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e8a4b3

Please sign in to comment.