diff options
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 |