diff options
author | Sebastian <sebasjm@gmail.com> | 2023-01-20 15:44:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-01-20 15:45:02 -0300 |
commit | 03b12d2b27e9d4038e2b02b303a0401160ebc632 (patch) | |
tree | 2ea4f87a03ffc955ebeaf090d7ed6316c5c006f2 /packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx | |
parent | 5f31dad2d3af80ab0f53cc52a8740f9a37ca0e75 (diff) | |
download | wallet-core-03b12d2b27e9d4038e2b02b303a0401160ebc632.tar.xz |
fix wrong fee calculation
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx b/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx index 373af8f74..a28b13141 100644 --- a/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx +++ b/packages/taler-wallet-webextension/src/cta/TransferCreate/views.tsx @@ -14,6 +14,7 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ +import { Amounts } from "@gnu-taler/taler-util"; import { format } from "date-fns"; import { h, VNode } from "preact"; import { ErrorTalerOperation } from "../../components/ErrorTalerOperation.js"; @@ -23,7 +24,7 @@ import { Link, SubTitle, WalletAction } from "../../components/styled/index.js"; import { useTranslationContext } from "../../context/translation.js"; import { Button } from "../../mui/Button.js"; import { TextField } from "../../mui/TextField.js"; -import { TransferDetails } from "../../wallet/Transaction.js"; +import { getAmountWithFee, TransferDetails } from "../../wallet/Transaction.js"; import { State } from "./index.js"; export function ReadyView({ @@ -114,10 +115,7 @@ export function ReadyView({ title={i18n.str`Details`} text={ <TransferDetails - amount={{ - effective: toBeReceived, - raw: debitAmount, - }} + amount={getAmountWithFee(debitAmount, toBeReceived, "debit")} /> } /> |