From 29db9e09f36f492bc02a64f56f756c21fdcc5037 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Mon, 18 Aug 2014 00:10:33 -0700 Subject: Keep amount in BTC units for calculations --- public/js/calculator.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index fde28652..4acb0f50 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -151,7 +151,7 @@ updateTotal = -> precision = 9 - multiplier().toString().length amount = parseFloat($('#amount').val() * g.tip) total = (amount * multiplier() / g.exchange).toFixed(precision) - g.amount_requested = total + g.amount_requested = (amount / g.exchange).toFixed(8) unless $.isNumeric(total) total = '' -- cgit v1.2.3