diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 4c1f24698655..4e3fc91fc4d9 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -1699,15 +1699,23 @@ function completeSplitBill(chatReportID, reportAction, updatedTransaction, sessi failureData.push(...oneOnOneFailureData); }); + const { + amount: transactionAmount, + currency: transactionCurrency, + created: transactionCreated, + merchant: transactionMerchant, + comment: transactionComment, + } = ReportUtils.getTransactionDetails(updatedTransaction); + API.write( 'CompleteSplitBill', { transactionID, - amount: updatedTransaction.modifiedAmount, - currency: updatedTransaction.modifiedCurrency, - created: updatedTransaction.modifiedCreated, - merchant: updatedTransaction.modifiedMerchant, - comment: updatedTransaction.comment.comment, + amount: transactionAmount, + currency: transactionCurrency, + created: transactionCreated, + merchant: transactionMerchant, + comment: transactionComment, splits: JSON.stringify(splits), }, {optimisticData, successData, failureData},