From 14d6c849728bf3662638211e129dc3f0802647fd Mon Sep 17 00:00:00 2001 From: IM23a-cernik Date: Mon, 28 Apr 2025 15:07:58 +0200 Subject: [PATCH] yet yet another attempt --- lobby.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lobby.js b/lobby.js index 1adc4eb..ac5279e 100644 --- a/lobby.js +++ b/lobby.js @@ -43,7 +43,7 @@ app.get("/lobby/join", async (req, res) => { return res.status(401).json({error: "User doesn't exist"}); } console.log(playerMap); - if (playerMap[lobbyId]) { + if (lobbyId in playerMap) { await joinLobby(lobbyId, user.username); if (!playerMap[lobbyId]) {