Added 'Join' error message when lobby is not found
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user