From 82e401a77303fca1dc977ee3662d7364bb946ff3 Mon Sep 17 00:00:00 2001
From: Florian Dold <florian.dold@gmail.com>
Date: Wed, 16 Nov 2016 10:29:07 +0100
Subject: make fractional base a constant

---
 src/renderHtml.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/renderHtml.tsx')

diff --git a/src/renderHtml.tsx b/src/renderHtml.tsx
index 940d5c425..fe6646196 100644
--- a/src/renderHtml.tsx
+++ b/src/renderHtml.tsx
@@ -21,10 +21,10 @@
  */
 
 
-import {AmountJson, Contract} from "./types";
+import {AmountJson, Contract, Amounts} from "./types";
 
 export function prettyAmount(amount: AmountJson) {
-  let v = amount.value + amount.fraction / 1e6;
+  let v = amount.value + amount.fraction / Amounts.fractionalBase;
   return `${v.toFixed(2)} ${amount.currency}`;
 }
 
-- 
cgit v1.2.3

