From 97f6e68ce3a515938228b9a4d3e41b5f4b25a015 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Mon, 29 Jan 2018 22:58:47 +0100
Subject: change protocol to string amount network format

---
 src/webex/pages/confirm-contract.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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

diff --git a/src/webex/pages/confirm-contract.tsx b/src/webex/pages/confirm-contract.tsx
index 21f05d5d6..78e90ee0e 100644
--- a/src/webex/pages/confirm-contract.tsx
+++ b/src/webex/pages/confirm-contract.tsx
@@ -42,6 +42,8 @@ import * as ReactDOM from "react-dom";
 import URI = require("urijs");
 import { WalletApiError } from "../wxApi";
 
+import * as Amounts from "../../amounts";
+
 
 interface DetailState {
   collapsed: boolean;
@@ -294,7 +296,7 @@ class ContractPrompt extends React.Component<ContractPromptProps, ContractPrompt
     } else {
       merchantName = <strong>(pub: {c.merchant_pub})</strong>;
     }
-    const amount = <strong>{renderAmount(c.amount)}</strong>;
+    const amount = <strong>{renderAmount(Amounts.parseOrThrow(c.amount))}</strong>;
     console.log("payStatus", this.state.payStatus);
 
     let products = null;
-- 
cgit v1.2.3

