update ui as soon as balance is computed

This commit is contained in:
Ivan Socolsky 2014-10-20 10:34:45 -03:00 committed by Matias Alejo Garcia
commit 972b29b5de

View file

@ -92,6 +92,9 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
$scope.wallets.push(w);
controllerUtils.updateBalance(w, function(err, res) {
if (err) return;
setTimeout(function() {
$scope.$digest();
}, 1);
});
});
};