diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-20 09:59:20 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-20 09:59:20 -0300 |
commit | 81dda3b6b1500ed11b6ae539ce52a6c7e9a58951 (patch) | |
tree | a98d6a72e6044d021aba285144b06a16bdbf816e /packages/taler-wallet-webextension/src/wallet | |
parent | 346056ca91d5d91fa3392217c24e8d1e32c91c54 (diff) | |
download | wallet-core-81dda3b6b1500ed11b6ae539ce52a6c7e9a58951.tar.xz |
fix: effective amount is higher that raw amount in transfer
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Transaction.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx index 397972636..c9e7bbe85 100644 --- a/packages/taler-wallet-webextension/src/wallet/Transaction.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Transaction.tsx @@ -1285,7 +1285,7 @@ export function InvoiceDetails({ amount }: { amount: AmountWithFee }): VNode { export function TransferDetails({ amount }: { amount: AmountWithFee }): VNode { const { i18n } = useTranslationContext(); - const fee = Amounts.sub(amount.raw, amount.effective).amount; + const fee = Amounts.sub(amount.effective, amount.raw).amount; const maxFrac = [amount.raw, amount.effective, fee] .map((a) => Amounts.maxFractionalDigits(a)) |