diff --git a/app.js b/app.js index eca8a0a..0bd98c9 100644 --- a/app.js +++ b/app.js @@ -279,7 +279,7 @@ function leaveRoom() { roomItem.remove(); } - config.rooms = config.rooms.filter(e => e !== currentRoom.topic); + config.rooms = config.rooms.filter(e => e !== currentRoom.topic.toString()); writeConfigToFile("./config.json"); currentRoom.destroy();