diff --git a/js/models/core/Wallet.js b/js/models/core/Wallet.js index 291c7d36c..4615666f3 100644 --- a/js/models/core/Wallet.js +++ b/js/models/core/Wallet.js @@ -127,8 +127,8 @@ Wallet.prototype._handleNetworkChange = function(newCopayerId) { if (newCopayerId) { this.log('#### Setting new PEER:', newCopayerId); this.sendWalletId(newCopayerId); + this.emit('peer', newCopayerId); } - this.emit('peer', newPeerId); this.emit('refresh'); }; @@ -178,10 +178,11 @@ Wallet.prototype.netStart = function() { net.start(function() { self.emit('created', net.getPeer()); - for (var i=0; i