mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-24 09:35:03 +00:00
bugfix: pressing lobby button causes player to attempt to join invalid game
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user