From d64cd5413b9ef3c5eab17fa6222e7914a19aed3f Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Mon, 31 Oct 2016 15:43:37 -0400 Subject: [PATCH] fix(walletService): cache.pendingAmount can be 0 --- src/js/services/walletService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/services/walletService.js b/src/js/services/walletService.js index 8ea473cf5..a2dea86dc 100644 --- a/src/js/services/walletService.js +++ b/src/js/services/walletService.js @@ -222,7 +222,7 @@ angular.module('copayApp.services').factory('walletService', function($log, $tim cache.availableBalanceStr = txFormatService.formatAmount(cache.availableBalanceSat) + ' ' + cache.unitName; cache.pendingBalanceStr = txFormatService.formatAmount(cache.totalBalanceSat + (cache.pendingAmount === null? 0 : cache.pendingAmount)) + ' ' + cache.unitName; - if (cache.pendingAmount !== null) { + if (cache.pendingAmount !== null && cache.pendingAmount !== 0) { cache.pendingAmountStr = txFormatService.formatAmount(cache.pendingAmount) + ' ' + cache.unitName; } else { cache.pendingAmountStr = null;