summaryrefslogtreecommitdiff
path: root/packages/taler-wallet-webextension/src/pages/withdraw.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2021-01-17 18:33:25 +0100
committerFlorian Dold <florian@dold.me>2021-01-17 18:33:25 +0100
commitb1056b4c20bca2cddfcb50fa93eeef0b183b38ea (patch)
treefd49bf1c0c6fe47b1d0380c70e341cb6829704da /packages/taler-wallet-webextension/src/pages/withdraw.tsx
parent9aa9742d0e909609f9ce22bc1db8364ab7076db8 (diff)
downloadwallet-core-b1056b4c20bca2cddfcb50fa93eeef0b183b38ea.tar.gz
wallet-core-b1056b4c20bca2cddfcb50fa93eeef0b183b38ea.tar.bz2
wallet-core-b1056b4c20bca2cddfcb50fa93eeef0b183b38ea.zip
actually display fees instead of effective amount
Diffstat (limited to 'packages/taler-wallet-webextension/src/pages/withdraw.tsx')
-rw-r--r--packages/taler-wallet-webextension/src/pages/withdraw.tsx12
1 files changed, 6 insertions, 6 deletions
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<WithdrawUriInfoResponse | undefined>();
const [selectedExchange, setSelectedExchange] = useState<
string | undefined
>();
@@ -55,7 +53,9 @@ function WithdrawalDialog(props: { talerWithdrawUri: string }): JSX.Element {
useEffect(() => {
const fetchData = async (): Promise<void> => {
- 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 {
<h1>Digital Cash Withdrawal</h1>
<i18n.Translate wrap="p">
You are about to withdraw{" "}
- <strong>{renderAmount(details.amount)}</strong> from
- your bank account into your wallet.
+ <strong>{renderAmount(details.amount)}</strong> from your bank account
+ into your wallet.
</i18n.Translate>
{selectedExchange ? (
<p>