commit
b6f9a45dd9
2 changed files with 2 additions and 7 deletions
|
|
@ -67,12 +67,7 @@ angular.module('copayApp.controllers').controller('SidebarController', function(
|
||||||
if (controllerUtils.isFocusedWallet(wid)) return;
|
if (controllerUtils.isFocusedWallet(wid)) return;
|
||||||
var w = $rootScope.iden.getWalletById(wid);
|
var w = $rootScope.iden.getWalletById(wid);
|
||||||
$scope.wallets.push(w);
|
$scope.wallets.push(w);
|
||||||
controllerUtils.updateBalance(w, function(err, res) {
|
controllerUtils.updateTxsAndBalance(w);
|
||||||
if (err) return;
|
|
||||||
setTimeout(function() {
|
|
||||||
$scope.$digest();
|
|
||||||
}, 1);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,7 @@ angular.module('copayApp.services')
|
||||||
|
|
||||||
|
|
||||||
root.isFocusedWallet = function(wid) {
|
root.isFocusedWallet = function(wid) {
|
||||||
return wid === $rootScope.wallet.getId();
|
return $rootScope.wallet && wid === $rootScope.wallet.getId();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue