Skip to content

Commit

Permalink
use navigateBack
Browse files Browse the repository at this point in the history
  • Loading branch information
teneeto committed May 10, 2024
1 parent bade846 commit ea26dc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/iou/request/step/IOURequestStepTaxRatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ function IOURequestStepTaxRatePage({
}

if (taxAmount === undefined) {
Navigation.goBack(backTo);
navigateBack();
return;
}
const amountInSmallestCurrencyUnits = CurrencyUtils.convertToBackendAmount(taxAmount);
IOU.setMoneyRequestTaxRate(transaction?.transactionID, taxes?.code ?? '');
IOU.setMoneyRequestTaxAmount(transaction.transactionID, amountInSmallestCurrencyUnits, true);

Navigation.goBack(backTo);
navigateBack();
};

return (
Expand Down

0 comments on commit ea26dc9

Please sign in to comment.