Fix js error when selecting an incomplete wallet
This commit is contained in:
parent
27f3ebf376
commit
1d1f95db5d
2 changed files with 5 additions and 5 deletions
|
|
@ -25,7 +25,8 @@ angular.module('copayApp.controllers').controller('sidebarController',
|
|||
};
|
||||
|
||||
self.switchWallet = function(selectedWalletId, currentWalletId) {
|
||||
if (selectedWalletId == currentWalletId) return;
|
||||
var client = profileService.focusedClient;
|
||||
if (selectedWalletId == currentWalletId && client.isComplete()) return;
|
||||
self.walletSelection = false;
|
||||
profileService.setAndStoreFocus(selectedWalletId, function() {});
|
||||
$ionicScrollDelegate.scrollTop();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue