Skip to content

Commit

Permalink
pass amount and currency
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Dec 19, 2023
1 parent e499733 commit 8838be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/steps/MoneyRequestAmountForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ function MoneyRequestAmountForm({amount, currency, isEditing, forwardedRef, onCu
const backendAmount = CurrencyUtils.convertToBackendAmount(Number.parseFloat(currentAmount));
initializeAmount(backendAmount);

onSubmitButtonPress(currentAmount);
}, [onSubmitButtonPress, currentAmount, initializeAmount]);
onSubmitButtonPress({amount: currentAmount, currency});
}, [onSubmitButtonPress, currentAmount, currency, initializeAmount]);

/**
* Input handler to check for a forward-delete key (or keyboard shortcut) press.
Expand Down

0 comments on commit 8838be3

Please sign in to comment.