From 1dca21fe75611210fead5ef0dbb45607e2eb9306 Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Mon, 10 Jun 2024 21:03:01 +0300 Subject: [PATCH] Did an oopsie with array.filter ([array.filter] instead of [array].filter) --- chatBot/includes/client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chatBot/includes/client.js b/chatBot/includes/client.js index 8465b4c..c86affa 100644 --- a/chatBot/includes/client.js +++ b/chatBot/includes/client.js @@ -24,7 +24,7 @@ class Client extends EventEmitter { this.swarm.peers.forEach((peerInfo, peer) => { console.log([peer.topics]) - console.log([peer.topics.filter(topic => topic)]) + console.log([peer.topics].filter(topic => topic)) console.log(`Peer ${[peer]} is in topic(s) [${[peer.topics].filter(topic => topic).map(topic => topic.toString('hex')).join(", ")}]`); }); });