bugfix: pressing lobby button causes player to attempt to join invalid game

This commit is contained in:
evanpelle
2025-05-19 18:35:36 -07:00
parent 263d2912a8
commit 763b0621c3
+7
View File
@@ -195,6 +195,13 @@ class Client {
}
const lobbyId = ctx.params.lobbyId;
if (lobbyId?.endsWith("#")) {
// When the cookies button is pressed, '#' is added to the url
// causing the page to attempt to rejoin the lobby during game play.
console.error("Invalid lobby ID provided");
return;
}
this.joinModal.open(lobbyId);
consolex.log(`joining lobby ${lobbyId}`);