diff options
author | Florian Dold <florian@dold.me> | 2023-04-06 12:47:34 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-04-06 12:47:34 +0200 |
commit | 43ae414a55b84b1125c5e4377c6d485ca6c748e2 (patch) | |
tree | 3e2f9ffc272406aa25327f19b9006d020f070658 /packages/taler-wallet-webextension/src/wallet/DepositPage/state.ts | |
parent | 3cf6d15eae299576eada8b501e5848ef29dad03c (diff) | |
download | wallet-core-43ae414a55b84b1125c5e4377c6d485ca6c748e2.tar.xz |
-re-add missing fields, fix types
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet/DepositPage/state.ts')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/DepositPage/state.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/DepositPage/state.ts b/packages/taler-wallet-webextension/src/wallet/DepositPage/state.ts index b744b80e5..42a3ba847 100644 --- a/packages/taler-wallet-webextension/src/wallet/DepositPage/state.ts +++ b/packages/taler-wallet-webextension/src/wallet/DepositPage/state.ts @@ -151,7 +151,7 @@ export function useComponentState({ // eslint-disable-next-line react-hooks/rules-of-hooks const hook = useAsyncAsHook(async () => { - const fee = await api.wallet.call(WalletApiOperation.GetFeeForDeposit, { + const fee = await api.wallet.call(WalletApiOperation.PrepareDeposit, { amount: amountStr, depositPaytoUri, }); @@ -181,7 +181,7 @@ export function useComponentState({ const totalFee = fee !== undefined - ? Amounts.sum([fee.wire, fee.coin, fee.refresh]).amount + ? Amounts.sum([fee.fees.wire, fee.fees.coin, fee.fees.refresh]).amount : Amounts.zeroOfCurrency(currency); const totalToDeposit = |