Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #101 from LiskHQ/99_fix-peer-dropdown
Browse files Browse the repository at this point in the history
Make peer dropdown work also with ports - Closes #99
  • Loading branch information
karmacoma authored Apr 6, 2017
2 parents f22ae91 + 1e5d979 commit bfe45a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/services/peers/peers.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ app.factory('$peers', ($timeout, $cookies, $location, $q) => {
}];
this.peerByName = {};
Object.keys(this.stack).forEach((key) => {
this.stack[key].forEach(peer => this.peerByName[peer.node] = peer);
this.stack[key].forEach(peer => this.peerByName[peer.node + peer.port] = peer);
});
}
this.currentPeerConfig = this.peerByName[this.active.currentPeer];
this.currentPeerConfig = this.peerByName[this.active.currentPeer + this.active.port];

this.check();
}
Expand Down

0 comments on commit bfe45a0

Please sign in to comment.