From b0a103d8ce6ef864c5a4f042f5598959f552e343 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Fri, 10 Apr 2026 11:36:32 +0200 Subject: [PATCH] Show default chess control detail in room summary - Use the selected chess time control detail when available - Fall back to a balanced default description when no match is found --- panel/src/games/GameLobby.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/panel/src/games/GameLobby.tsx b/panel/src/games/GameLobby.tsx index 91e4fe7..f6e5c78 100644 --- a/panel/src/games/GameLobby.tsx +++ b/panel/src/games/GameLobby.tsx @@ -142,7 +142,8 @@ function CreateRoomDialog({ if (!show) return null; const selectedGame = configGame ? gameUIRegistry.get(configGame) : null; - const selectedChessControl = CHESS_TIME_CONTROLS.find(control => control.key === chessTimeControl) ?? CHESS_TIME_CONTROLS[0]; + const selectedChessControl = CHESS_TIME_CONTROLS.find(control => control.key === chessTimeControl); + const selectedChessControlDetail = selectedChessControl?.detail ?? "Balanced default for most quick matches."; return (
Room Summary
{CHESS_TIME_CONTROL_LABELS[chessTimeControl]}
-
{selectedChessControl.detail}
+
{selectedChessControlDetail}
Launch