Update balance to every wallet

This commit is contained in:
Matias Pando 2014-11-06 12:47:54 -03:00
commit be10694763
2 changed files with 5 additions and 4 deletions

View file

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