Skip to content

Commit

Permalink
fix amount issue
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Dec 20, 2023
1 parent f1a4621 commit a17fbb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/iou/request/step/IOURequestStepAmount.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ function IOURequestStepAmount({
};

/**
* @param {Number} currentAmount
* @param {Number} amount
*/
const navigateToNextPage = (currentAmount) => {
const amountInSmallestCurrencyUnits = CurrencyUtils.convertToBackendAmount(Number.parseFloat(currentAmount));
const navigateToNextPage = ({amount}) => {
const amountInSmallestCurrencyUnits = CurrencyUtils.convertToBackendAmount(Number.parseFloat(amount));
IOU.setMoneyRequestAmount_temporaryForRefactor(transactionID, amountInSmallestCurrencyUnits, currency || CONST.CURRENCY.USD);

if (backTo) {
Expand Down

0 comments on commit a17fbb9

Please sign in to comment.