summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/cta
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-wallet-webextension/src/cta')
-rw-r--r--packages/taler-wallet-webextension/src/cta/Withdraw.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx
index d58e2ec80..bef33dce1 100644
--- a/packages/taler-wallet-webextension/src/cta/Withdraw.tsx
+++ b/packages/taler-wallet-webextension/src/cta/Withdraw.tsx
@@ -318,12 +318,17 @@ export function WithdrawPageWithParsedURI({
}
};
+ const withdrawalFee = Amounts.sub(
+ Amounts.parseOrThrow(details.info.withdrawalAmountRaw),
+ Amounts.parseOrThrow(details.info.withdrawalAmountEffective),
+ ).amount;
+
return (
<View
onWithdraw={onWithdraw}
amount={withdrawAmount}
exchangeBaseUrl={exchange}
- withdrawalFee={details.info.withdrawFee} //FIXME
+ withdrawalFee={withdrawalFee}
terms={detailsHook.response.tos}
onSwitchExchange={setCustomExchange}
knownExchanges={knownExchanges}