fix: do a truthy check on networkId
This commit is contained in:
parent
68e6c3a682
commit
68b7ffa855
|
@ -98,7 +98,7 @@ export class P2PService {
|
|||
peerNetworkId = u.unpackString();
|
||||
} catch {}
|
||||
|
||||
if (peerNetworkId !== this.networkId) {
|
||||
if (this.networkId && peerNetworkId !== this.networkId) {
|
||||
throw `Peer is in different network: ${peerNetworkId}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue