From 4101bc0f53df0c6ed32f6710d24a1b8b26777bb9 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 20 Dec 2015 21:38:41 +0100 Subject: Fix embarassingly wrong constant --- extension/lib/commonHelpers.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'extension/lib/commonHelpers.js') diff --git a/extension/lib/commonHelpers.js b/extension/lib/commonHelpers.js index 95faf1112..0ba88e9c5 100644 --- a/extension/lib/commonHelpers.js +++ b/extension/lib/commonHelpers.js @@ -1,12 +1,12 @@ "use strict"; Handlebars.registerHelper('prettyAmount', function (amount) { - let v = amount.value + amount.fraction / 10e6; + let v = amount.value + amount.fraction / 1e6; return v.toFixed(2) + " " + amount.currency; }); Handlebars.registerHelper('prettyAmountNoCurrency', function (amount) { - let v = amount.value + amount.fraction / 10e6; + let v = amount.value + amount.fraction / 1e6; return v.toFixed(2); }); -- cgit v1.2.3