Skip to content

Commit

Permalink
Merge pull request #33599 from dukenv0307/fix/33587
Browse files Browse the repository at this point in the history
[CP Staging] Fix amount isn't saved when editting split scan request

(cherry picked from commit 5bfb57c)
  • Loading branch information
pecanoro authored and OSBotify committed Dec 26, 2023
1 parent 1cbd2bc commit 5faff5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/EditSplitBillPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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={() => {
Expand Down

0 comments on commit 5faff5f

Please sign in to comment.