From 1d44006788c6160bc1b34caf567c9e2de188c31a Mon Sep 17 00:00:00 2001 From: Sam Cheng Hung Date: Thu, 29 Mar 2018 16:10:21 +0900 Subject: [PATCH] Update: txFormatService.formatAmount returns 0.00 for 0 satoshi values --- src/js/services/txFormatService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/txFormatService.js b/src/js/services/txFormatService.js index 47ed539e8..5817c1a27 100644 --- a/src/js/services/txFormatService.js +++ b/src/js/services/txFormatService.js @@ -14,7 +14,7 @@ angular.module('copayApp.services').factory('txFormatService', function($filter, var opts = { fullPrecision: !!fullPrecision }; - return this.Utils.formatAmount(satoshis, config.unitCode, opts); + return parseInt(satoshis) == 0 ? '0.00' : this.Utils.formatAmount(satoshis, config.unitCode, opts); }; root.formatAmountStr = function(coin, satoshis) {