aboutsummaryrefslogtreecommitdiff
path: root/extension/lib/commonHelpers.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2015-12-20 21:38:41 +0100
committerFlorian Dold <florian.dold@gmail.com>2015-12-20 21:38:41 +0100
commit4101bc0f53df0c6ed32f6710d24a1b8b26777bb9 (patch)
tree254204fd74f31015c7554b1c1d7d127e35ce5ada /extension/lib/commonHelpers.js
parent604cb2f80473c23f76afd37670a1a7249ae170a3 (diff)
Fix embarassingly wrong constant
Diffstat (limited to 'extension/lib/commonHelpers.js')
-rw-r--r--extension/lib/commonHelpers.js4
1 files changed, 2 insertions, 2 deletions
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);
});