diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-29 18:27:50 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-29 18:27:50 +0200 |
commit | 94d111a94533c0c31231642e8ffe4fbd4ce30096 (patch) | |
tree | 79c9f8ec3754699f8a135630f1ab6ee9be8019e6 /src/webex/pages/confirm-create-reserve.tsx | |
parent | b5c90d12219ca3a0df173ddf085d2353831a8ef6 (diff) | |
download | wallet-core-94d111a94533c0c31231642e8ffe4fbd4ce30096.tar.xz |
lint for unused variables, fix query bug detected by this
Diffstat (limited to 'src/webex/pages/confirm-create-reserve.tsx')
-rw-r--r-- | src/webex/pages/confirm-create-reserve.tsx | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/webex/pages/confirm-create-reserve.tsx b/src/webex/pages/confirm-create-reserve.tsx index 50a1045ef..6e1cc4a82 100644 --- a/src/webex/pages/confirm-create-reserve.tsx +++ b/src/webex/pages/confirm-create-reserve.tsx @@ -29,7 +29,6 @@ import { Amounts, CreateReserveResponse, CurrencyRecord, - Denomination, DenominationRecord, ReserveCreationInfo, } from "../../types"; @@ -229,16 +228,6 @@ function renderReserveCreationDetails(rci: ReserveCreationInfo|null) { } -function WithdrawFee(props: {reserveCreationInfo: ReserveCreationInfo|null}): JSX.Element { - if (props.reserveCreationInfo) { - const {overhead, withdrawFee} = props.reserveCreationInfo; - const totalCost = Amounts.add(overhead, withdrawFee).amount; - return <p>{i18n.str`Withdraw fees:`} {amountToPretty(totalCost)}</p>; - } - return <p />; -} - - interface ExchangeSelectionProps { suggestedExchangeUrl: string; amount: AmountJson; @@ -298,7 +287,7 @@ class ManualSelection extends ImplicitStateComponent<ManualSelectionProps> { } try { const url = canonicalizeBaseUrl(this.url()!); - const r = await getExchangeInfo(url); + await getExchangeInfo(url); console.log("getExchangeInfo returned"); this.isOkay(true); } catch (e) { @@ -596,7 +585,6 @@ async function main() { throw Error(i18n.str`Can't parse amount: ${e.message}`); } const callback_url = query.callback_url; - const bank_url = query.bank_url; let wt_types; try { wt_types = JSON.parse(query.wt_types); |