Skip to content

Commit

Permalink
update NewRequestAmountPage
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Dec 20, 2023
1 parent a17fbb9 commit ffd3032
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/steps/NewRequestAmountPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,8 @@ function NewRequestAmountPage({route, iou, report, selectedTab}) {
Navigation.navigate(ROUTES.MONEY_REQUEST_CURRENCY.getRoute(iouType, reportID, currency, activeRoute));
};

const navigateToNextPage = (currentAmount) => {
const amountInSmallestCurrencyUnits = CurrencyUtils.convertToBackendAmount(Number.parseFloat(currentAmount));
const navigateToNextPage = ({amount}) => {
const amountInSmallestCurrencyUnits = CurrencyUtils.convertToBackendAmount(Number.parseFloat(amount));
IOU.setMoneyRequestAmount(amountInSmallestCurrencyUnits);
IOU.setMoneyRequestCurrency(currency);

Expand Down

0 comments on commit ffd3032

Please sign in to comment.