diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-09-14 15:55:10 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-09-14 15:55:10 +0200 |
commit | ebbdadb4b6bd59e57b0eec8e280c7c5c12453167 (patch) | |
tree | 8f9fdbd1cf0e2d1b79884dfe15828f3c98f28da6 /pages/confirm-create-reserve.tsx | |
parent | fc6db1824e6974898f177ffb0ffd2eb138a653ce (diff) |
sort out libs / fix warnings
Diffstat (limited to 'pages/confirm-create-reserve.tsx')
-rw-r--r-- | pages/confirm-create-reserve.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pages/confirm-create-reserve.tsx b/pages/confirm-create-reserve.tsx index 667323044..0a509118d 100644 --- a/pages/confirm-create-reserve.tsx +++ b/pages/confirm-create-reserve.tsx @@ -189,7 +189,7 @@ class Controller { } function view(ctrl: Controller): any { - function* f() { + function* f(): IterableIterator<any> { yield m("p", i18n.parts`You are about to withdraw ${m("strong", amountToPretty( ctrl.amount))} from your bank account into your wallet.`); @@ -374,8 +374,8 @@ export function main() { getSuggestedExchange(amount.currency) .then((suggestedExchangeUrl) => { const controller = function () { return new Controller(suggestedExchangeUrl, amount, callback_url, wt_types); }; - var ExchangeSelection = {controller, view}; - m.mount(document.getElementById("exchange-selection"), ExchangeSelection); + const ExchangeSelection = {controller, view}; + m.mount(document.getElementById("exchange-selection")!, ExchangeSelection); }) .catch((e) => { // TODO: provide more context information, maybe factor it out into a |