Shows only ready wallets

This commit is contained in:
Matias Pando 2014-11-04 10:17:42 -03:00
commit d8f4881582
2 changed files with 8 additions and 7 deletions

View file

@ -11,10 +11,12 @@ angular.module('copayApp.controllers').controller('PaymentIntentController', fun
var wids = _.pluck($rootScope.iden.listWallets(), 'id');
_.each(wids, function(wid) {
var w = $rootScope.iden.getWalletById(wid);
$scope.wallets.push(w);
controllerUtils.updateBalance(w, function() {
$rootScope.$digest();
});
if (w && w.isReady()) {
$scope.wallets.push(w);
controllerUtils.updateBalance(w, function() {
$rootScope.$digest();
});
}
});
$scope.switchWallet = function(wid) {