summaryrefslogtreecommitdiff
path: root/src/webex/pages/withdraw.tsx
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-12-20 11:35:51 +0100
committerFlorian Dold <florian.dold@gmail.com>2019-12-20 11:35:51 +0100
commit54f7999c63292ca63f5f584c49bdef0b55627d71 (patch)
tree753d18dfeaad893f0da55143f2c319d80a38e89c /src/webex/pages/withdraw.tsx
parent378d8dee5825c67f9387542661ea6b34c30adbea (diff)
downloadwallet-core-54f7999c63292ca63f5f584c49bdef0b55627d71.tar.gz
wallet-core-54f7999c63292ca63f5f584c49bdef0b55627d71.tar.bz2
wallet-core-54f7999c63292ca63f5f584c49bdef0b55627d71.zip
fix taler URI classification bug
Diffstat (limited to 'src/webex/pages/withdraw.tsx')
-rw-r--r--src/webex/pages/withdraw.tsx17
1 files changed, 9 insertions, 8 deletions
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 (
<div>
{i18n.str`Please select an exchange. You can review the details before after your selection.`}
@@ -157,8 +158,8 @@ function NewExchangeSelection(props: { talerWithdrawUri: string }) {
<div>
<i18n.Translate wrap="p">
You are about to withdraw{" "}
- <strong>{renderAmount(details.bankWithdrawDetails.amount)}</strong> from your
- bank account into your wallet.
+ <strong>{renderAmount(details.bankWithdrawDetails.amount)}</strong> from
+ your bank account into your wallet.
</i18n.Translate>
<div>
<button