From b1056b4c20bca2cddfcb50fa93eeef0b183b38ea Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 17 Jan 2021 18:33:25 +0100 Subject: actually display fees instead of effective amount --- packages/taler-wallet-webextension/src/pages/withdraw.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'packages/taler-wallet-webextension/src/pages/withdraw.tsx') diff --git a/packages/taler-wallet-webextension/src/pages/withdraw.tsx b/packages/taler-wallet-webextension/src/pages/withdraw.tsx index 2747dd3f7..72b3a1050 100644 --- a/packages/taler-wallet-webextension/src/pages/withdraw.tsx +++ b/packages/taler-wallet-webextension/src/pages/withdraw.tsx @@ -34,9 +34,7 @@ import { import { WithdrawUriInfoResponse } from "taler-wallet-core"; function WithdrawalDialog(props: { talerWithdrawUri: string }): JSX.Element { - const [details, setDetails] = useState< - WithdrawUriInfoResponse | undefined - >(); + const [details, setDetails] = useState(); const [selectedExchange, setSelectedExchange] = useState< string | undefined >(); @@ -55,7 +53,9 @@ function WithdrawalDialog(props: { talerWithdrawUri: string }): JSX.Element { useEffect(() => { const fetchData = async (): Promise => { - const res = await getWithdrawalDetailsForUri({talerWithdrawUri: props.talerWithdrawUri}); + const res = await getWithdrawalDetailsForUri({ + talerWithdrawUri: props.talerWithdrawUri, + }); setDetails(res); if (res.defaultExchangeBaseUrl) { setSelectedExchange(res.defaultExchangeBaseUrl); @@ -89,8 +89,8 @@ function WithdrawalDialog(props: { talerWithdrawUri: string }): JSX.Element {

Digital Cash Withdrawal

You are about to withdraw{" "} - {renderAmount(details.amount)} from - your bank account into your wallet. + {renderAmount(details.amount)} from your bank account + into your wallet. {selectedExchange ? (

-- cgit v1.2.3