summaryrefslogtreecommitdiff
path: root/src/webex
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-07-22 14:22:03 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-07-22 14:22:03 +0530
commite60563fb540c04d9ba751fea69c1fc0f1de598b5 (patch)
tree45f7c86b66dc150d413f9855efaa6341e4a44624 /src/webex
parentf4a8702b3cf93f9edf96d1d1c8cb88baa309e301 (diff)
downloadwallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.gz
wallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.tar.bz2
wallet-core-e60563fb540c04d9ba751fea69c1fc0f1de598b5.zip
consistent error handling for HTTP request (and some other things)
Diffstat (limited to 'src/webex')
-rw-r--r--src/webex/pages/withdraw.tsx4
-rw-r--r--src/webex/wxBackend.ts5
2 files changed, 4 insertions, 5 deletions
diff --git a/src/webex/pages/withdraw.tsx b/src/webex/pages/withdraw.tsx
index c4e4ebbb9..0216cdb4f 100644
--- a/src/webex/pages/withdraw.tsx
+++ b/src/webex/pages/withdraw.tsx
@@ -35,7 +35,9 @@ import {
} from "../wxApi";
function WithdrawalDialog(props: { talerWithdrawUri: string }): JSX.Element {
- const [details, setDetails] = useState<WithdrawalDetailsResponse | undefined>();
+ const [details, setDetails] = useState<
+ WithdrawalDetailsResponse | undefined
+ >();
const [selectedExchange, setSelectedExchange] = useState<
string | undefined
>();
diff --git a/src/webex/wxBackend.ts b/src/webex/wxBackend.ts
index 126756165..d5a272160 100644
--- a/src/webex/wxBackend.ts
+++ b/src/webex/wxBackend.ts
@@ -29,10 +29,7 @@ import {
openTalerDatabase,
WALLET_DB_MINOR_VERSION,
} from "../db";
-import {
- ReturnCoinsRequest,
- WalletDiagnostics,
-} from "../types/walletTypes";
+import { ReturnCoinsRequest, WalletDiagnostics } from "../types/walletTypes";
import { BrowserHttpLib } from "../util/http";
import { OpenedPromise, openPromise } from "../util/promiseUtils";
import { classifyTalerUri, TalerUriType } from "../util/taleruri";