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
  • Loading branch information
Beamanator authored Nov 3, 2023
2 parents 85aad61 + 1981886 commit f498830
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 @@ -4088,7 +4088,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 f498830

Please sign in to comment.