From 885285734733b71c88dfb0da513988eb8678aa14 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Mon, 12 Sep 2016 20:25:56 +0200
Subject: fix compiler warnings

---
 pages/confirm-contract.tsx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'pages/confirm-contract.tsx')

diff --git a/pages/confirm-contract.tsx b/pages/confirm-contract.tsx
index fadbc3233..e88336a2d 100644
--- a/pages/confirm-contract.tsx
+++ b/pages/confirm-contract.tsx
@@ -26,11 +26,11 @@
 import MithrilComponent = _mithril.MithrilComponent;
 import {substituteFulfillmentUrl} from "../lib/wallet/helpers";
 import m from "mithril";
-import {Contract} from "../lib/wallet/types";
+import {Contract, AmountJson} from "../lib/wallet/types";
 "use strict";
 
 
-function prettyAmount(amount) {
+function prettyAmount(amount: AmountJson) {
   let v = amount.value + amount.fraction / 1e6;
   return `${v.toFixed(2)} ${amount.currency}`;
 }
@@ -40,7 +40,7 @@ const Details = {
   controller() {
     return {collapsed: m.prop(true)};
   },
-  view(ctrl, contract: Contract) {
+  view(ctrl: any, contract: Contract) {
     if (ctrl.collapsed()) {
       return m("div", [
         m("button.linky", {
@@ -71,11 +71,11 @@ export function main() {
   let offer = JSON.parse(query.offer);
   console.dir(offer);
   let contract = offer.contract;
-  let error = null;
+  let error: string|null = null;
   let payDisabled = true;
 
   var Contract = {
-    view(ctrl) {
+    view(ctrl: any) {
       return [
         m("p",
           i18n.parts`${m("strong", contract.merchant.name)}
-- 
cgit v1.2.3

