From 54f7999c63292ca63f5f584c49bdef0b55627d71 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 20 Dec 2019 11:35:51 +0100 Subject: fix taler URI classification bug --- src/webex/pages/withdraw.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'src/webex/pages') diff --git a/src/webex/pages/withdraw.tsx b/src/webex/pages/withdraw.tsx index 9d84ff3a6..c123e2a6f 100644 --- a/src/webex/pages/withdraw.tsx +++ b/src/webex/pages/withdraw.tsx @@ -21,12 +21,9 @@ * @author Florian Dold */ - import * as i18n from "../i18n"; -import { - WithdrawDetails, -} from "../../types/walletTypes"; +import { WithdrawDetails } from "../../types/walletTypes"; import { WithdrawDetailView, renderAmount } from "../renderHtml"; @@ -52,7 +49,10 @@ function NewExchangeSelection(props: { talerWithdrawUri: string }) { try { d = await getWithdrawDetails(talerWithdrawUri, selectedExchange); } catch (e) { - console.error("error getting withdraw details", e); + console.error( + `error getting withdraw details for uri ${talerWithdrawUri}, exchange ${selectedExchange}`, + e, + ); setErrMsg(e.message); return; } @@ -101,7 +101,8 @@ function NewExchangeSelection(props: { talerWithdrawUri: string }) { } if (selecting) { - const bankSuggestion = details && details.bankWithdrawDetails.suggestedExchange; + const bankSuggestion = + details && details.bankWithdrawDetails.suggestedExchange; return (
{i18n.str`Please select an exchange. You can review the details before after your selection.`} @@ -157,8 +158,8 @@ function NewExchangeSelection(props: { talerWithdrawUri: string }) {
You are about to withdraw{" "} - {renderAmount(details.bankWithdrawDetails.amount)} from your - bank account into your wallet. + {renderAmount(details.bankWithdrawDetails.amount)} from + your bank account into your wallet.