From e60563fb540c04d9ba751fea69c1fc0f1de598b5 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 22 Jul 2020 14:22:03 +0530 Subject: consistent error handling for HTTP request (and some other things) --- src/webex/pages/withdraw.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/webex/pages/withdraw.tsx') 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(); + const [details, setDetails] = useState< + WithdrawalDetailsResponse | undefined + >(); const [selectedExchange, setSelectedExchange] = useState< string | undefined >(); -- cgit v1.2.3