From 4d3e71a346bc7be21a4a356c6e1ce464d4fac3b7 Mon Sep 17 00:00:00 2001 From: dabura667 Date: Wed, 8 Jul 2015 20:58:21 +0900 Subject: [PATCH] Fix max decimal place + trailing zeroes when in BTC --- public/views/transaction.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/views/transaction.html b/public/views/transaction.html index 757a104..c04a1bf 100644 --- a/public/views/transaction.html +++ b/public/views/transaction.html @@ -54,7 +54,7 @@ Fee Rate - {{$root.currency.getConvertion((tx.fees * 1000) / tx.size) + ' per kB' || ((tx.fees * 1000) / tx.size) + 'BTC per kB'}} + {{$root.currency.getConvertion((tx.fees * 1000) / tx.size) + ' per kB' || ((tx.fees * 1000) / tx.size).toFixed(8).replace(/([0-9]+(\.[0-9]+[1-9])?)(\.?0+$)/,'$1') + 'BTC per kB'}} Received Time