From d44ef48d8967a2c09296261c9e0f9bee70e7a1fa Mon Sep 17 00:00:00 2001 From: MrMasrozYTLIVE <61359286+MrMasrozYTLIVE@users.noreply.github.com> Date: Sun, 9 Jun 2024 11:16:22 +0300 Subject: [PATCH] I guess i know why it doesnt delete the room now --- app.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app.js b/app.js index 475cedc..f45abdf 100644 --- a/app.js +++ b/app.js @@ -279,10 +279,7 @@ function leaveRoom() { roomItem.remove(); } - console.log(config.rooms); - console.log(config.rooms.filter(e => e !== currentRoom.topic.toString())); - console.log(currentRoom.topic); - console.log(currentRoom.topic.toString()); + console.log(topic); config.rooms = config.rooms.filter(e => e !== currentRoom.topic.toString()); writeConfigToFile("./config.json");