From 5faff5fe80facd75addbe474ef0eb8aa7710e0be Mon Sep 17 00:00:00 2001 From: Rocio Perez-Cano Date: Wed, 27 Dec 2023 00:34:46 +0100 Subject: [PATCH] Merge pull request #33599 from dukenv0307/fix/33587 [CP Staging] Fix amount isn't saved when editting split scan request (cherry picked from commit 5bfb57c935f4322e11999b4999760a9901dcbb3f) --- src/pages/EditSplitBillPage.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/EditSplitBillPage.js b/src/pages/EditSplitBillPage.js index dd1a96a4c8b4..2be8d6f683ee 100644 --- a/src/pages/EditSplitBillPage.js +++ b/src/pages/EditSplitBillPage.js @@ -106,11 +106,11 @@ function EditSplitBillPage({route, transaction, draftTransaction, report}) { reportID={reportID} isEdittingSplitBill onSubmit={(transactionChanges) => { - const amount = CurrencyUtils.convertToBackendAmount(Number.parseFloat(transactionChanges)); + const amount = CurrencyUtils.convertToBackendAmount(Number.parseFloat(transactionChanges.amount)); setDraftSplitTransaction({ amount, - currency: defaultCurrency, + currency: transactionChanges.currency, }); }} onNavigateToCurrency={() => {