safe unspent

This commit is contained in:
Matias Alejo Garcia 2014-04-21 12:37:32 -03:00
commit 2fc3a8e8fa
5 changed files with 38 additions and 19 deletions

View file

@ -10,8 +10,7 @@ angular.module('copay.addresses').controller('AddressesController',
var _updateBalance = function () {
controllerUtils.setSocketHandlers();
w.getBalance(function (balance, balanceByAddr, isMain) {
w.getBalance(true, function (balance, balanceByAddr, isMain) {
if (balanceByAddr && Object.keys(balanceByAddr).length) {
$rootScope.balanceByAddr = balanceByAddr;
$scope.isMain = isMain;