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;
|
||||
var w = $rootScope.iden.getWalletById(wid);
|
||||
$scope.wallets.push(w);
|
||||
controllerUtils.updateBalance(w, function(err, res) {
|
||||
if (err) return;
|
||||
setTimeout(function() {
|
||||
$scope.$digest();
|
||||
}, 1);
|
||||
});
|
||||
controllerUtils.updateTxsAndBalance(w);
|
||||
});
|
||||
};
|
||||
});
|
||||
|
|
|
|||
|
|
@ -64,7 +64,7 @@ angular.module('copayApp.services')
|
|||
|
||||
|
||||
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