From 0ae93cefb9b3b890acb963a01ed6f298acf16b74 Mon Sep 17 00:00:00 2001 From: Ivan Socolsky Date: Tue, 21 Oct 2014 09:51:07 -0300 Subject: [PATCH] compute balance only if list of wallets is visible --- js/controllers/sidebar.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/controllers/sidebar.js b/js/controllers/sidebar.js index 898b728a9..adbefac32 100644 --- a/js/controllers/sidebar.js +++ b/js/controllers/sidebar.js @@ -84,6 +84,8 @@ angular.module('copayApp.controllers').controller('SidebarController', function( $scope.toggleWalletSelection = function() { $scope.walletSelection = !$scope.walletSelection; + if (!$scope.walletSelection) return; + $scope.wallets = []; var wids = _.pluck($rootScope.iden.listWallets(), 'id'); _.each(wids, function(wid) {