{{(item.name || item.id) | limitTo: 1}}
{{item.name || item.id}}
diff --git a/src/js/controllers/sidebar.js b/src/js/controllers/sidebar.js
index f21083256..1e409792e 100644
--- a/src/js/controllers/sidebar.js
+++ b/src/js/controllers/sidebar.js
@@ -24,9 +24,10 @@ angular.module('copayApp.controllers').controller('sidebarController',
profileService.signout();
};
- self.switchWallet = function(wid) {
+ self.switchWallet = function(selectedWalletId, currentWalletId) {
+ if (selectedWalletId == currentWalletId) return;
self.walletSelection = false;
- profileService.setAndStoreFocus(wid, function() {
+ profileService.setAndStoreFocus(selectedWalletId, function() {
});
};