compute balance only if list of wallets is visible

This commit is contained in:
Ivan Socolsky 2014-10-21 09:51:07 -03:00 committed by Matias Alejo Garcia
commit 0ae93cefb9

View file

@ -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) {