diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 37246fdf102c..d0f392638a88 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -999,12 +999,11 @@ function editMoneyRequest(transactionID, transactionThreadReportID, transactionC // STEP 3: Compute the IOU total and update the report preview message so LHN amount owed is correct // Should only update if the transaction matches the currency of the report, else we wait for the update // from the server with the currency conversion - let updatedMoneyRequestReport = null; + let updatedMoneyRequestReport = {...iouReport}; const updatedChatReport = {...chatReport}; if (updatedTransaction.currency === iouReport.currency && updatedTransaction.modifiedAmount) { const diff = TransactionUtils.getAmount(transaction, true) - TransactionUtils.getAmount(updatedTransaction, true); if (ReportUtils.isExpenseReport(iouReport)) { - updatedMoneyRequestReport = {...iouReport}; updatedMoneyRequestReport.total += diff; } else { updatedMoneyRequestReport = IOUUtils.updateIOUOwnerAndTotal(iouReport, updatedReportAction.actorAccountID, diff, TransactionUtils.getCurrency(transaction), false);