Skip to content

Commit

Permalink
Merge pull request #42039 from Expensify/monil-fixTaxAmountNegative
Browse files Browse the repository at this point in the history
[CP Staging] Fix tax amount being displayed as negative
  • Loading branch information
tgolen authored May 13, 2024
2 parents 2494c60 + 6c5a8b1 commit c7aff11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/iou/request/step/IOURequestStepTaxAmountPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function IOURequestStepTaxAmountPage({
<MoneyRequestAmountForm
isEditing={Boolean(backTo || isEditing)}
currency={currency}
amount={transactionDetails?.taxAmount}
amount={Math.abs(transactionDetails?.taxAmount ?? 0)}
taxAmount={getTaxAmount(transaction, policy, Boolean(backTo || isEditing))}
ref={(e) => (textInput.current = e)}
onCurrencyButtonPress={navigateToCurrencySelectionPage}
Expand Down

0 comments on commit c7aff11

Please sign in to comment.