From fea8fb2523667e0bb05d5ca5dd125999f6a746d6 Mon Sep 17 00:00:00 2001 From: JDonadio Date: Tue, 24 Jan 2017 10:45:43 -0300 Subject: [PATCH] fix format --- src/js/services/txFormatService.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/services/txFormatService.js b/src/js/services/txFormatService.js index edf2d4315..77533b692 100644 --- a/src/js/services/txFormatService.js +++ b/src/js/services/txFormatService.js @@ -18,13 +18,13 @@ angular.module('copayApp.services').factory('txFormatService', function($filter, }; root.formatAmountStr = function(satoshis) { - if (!satoshis) return; + if (isNaN(satoshis)) return; var config = configService.getSync().wallet.settings; return root.formatAmount(satoshis) + ' ' + config.unitName; }; root.formatToUSD = function(satoshis, cb) { - if (!satoshis) return; + if (isNaN(satoshis)) return; var val = function() { var v1 = rateService.toFiat(satoshis, 'USD'); if (!v1) return null; @@ -44,7 +44,7 @@ angular.module('copayApp.services').factory('txFormatService', function($filter, }; root.formatAlternativeStr = function(satoshis, cb) { - if (!satoshis) return; + if (isNaN(satoshis)) return; var config = configService.getSync().wallet.settings; var val = function() {