fix: do a truthy check on networkId

This commit is contained in:
Derrick Hammer 2023-08-31 02:29:32 -04:00
parent 68e6c3a682
commit 68b7ffa855
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ export class P2PService {
peerNetworkId = u.unpackString(); peerNetworkId = u.unpackString();
} catch {} } catch {}
if (peerNetworkId !== this.networkId) { if (this.networkId && peerNetworkId !== this.networkId) {
throw `Peer is in different network: ${peerNetworkId}`; throw `Peer is in different network: ${peerNetworkId}`;
} }