From c531b928844b63548e83177be70265e4117c9990 Mon Sep 17 00:00:00 2001 From: Andrio Celos Date: Sat, 29 Mar 2025 18:48:02 +1100 Subject: [PATCH] Fix issues with lobby game settings UI --- TableturfBattleClient/src/app.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TableturfBattleClient/src/app.ts b/TableturfBattleClient/src/app.ts index 5ec0b02..d56a6b3 100644 --- a/TableturfBattleClient/src/app.ts +++ b/TableturfBattleClient/src/app.ts @@ -115,7 +115,7 @@ function clearUrlFromGame() { function onGameSettingsChange() { if (currentGame == null) return; - if (lobbyTimeLimitBox.value != currentGame.game.turnTimeLimit?.toString() ?? '') + if (lobbyTimeLimitBox.value != (currentGame.game.turnTimeLimit?.toString() ?? '')) lobbyTimeLimitBox.value = currentGame.game.turnTimeLimit?.toString() ?? ''; lobbyAllowUpcomingCardsBox.checked = currentGame.game.allowUpcomingCards; lobbyAllowCustomCardsBox.checked = currentGame.game.allowCustomCards; @@ -347,6 +347,7 @@ function setupWebSocket(gameID: string) { case 'settingsChange': currentGame.game.turnTimeLimit = payload.data.turnTimeLimit; currentGame.game.allowUpcomingCards = payload.data.allowUpcomingCards; + currentGame.game.allowCustomCards = payload.data.allowCustomCards; onGameSettingsChange(); break; case 'join':