Added 'Join' error message when lobby is not found

This commit is contained in:
IM23a-spirgif
2025-04-30 09:30:19 +02:00
parent 5848f91ab2
commit d433cd3263
4 changed files with 33 additions and 6 deletions
-1
View File
@@ -240,7 +240,6 @@ app.get("/lobby/join", authenticateToken, async (req, res) => {
if (!playerMap[lobbyId].includes(username)) {
playerMap[lobbyId].push(username);
}
res.json({ lobbyId, username });
} else {
console.log("Lobby with " + lobbyId + " not found.");