diff --git a/src/views/Game/PlayerCards.tsx b/src/views/Game/PlayerCards.tsx index a5a6804999..db9b760100 100644 --- a/src/views/Game/PlayerCards.tsx +++ b/src/views/Game/PlayerCards.tsx @@ -434,14 +434,6 @@ function komiString(komi: number) { return komi > 0 ? `+ ${abs_komi}` : `- ${abs_komi}`; } -function rulesParens(rules: string | null | undefined) { - const code = rulesCode(rules); - if (!code || !rules || code === rulesText(rules)) { - return ""; - } - return " (" + code + ")"; -} - function rulesAndHandicap(rules: string | null | undefined, handicap_stones: number | undefined) { const stones = handicap_stones ? stonesString(handicap_stones) : ""; return ( @@ -528,17 +520,16 @@ function ScorePopup({ show, goban, color }: ScorePopupProps) {
{color === "black" && goban.engine.config.rules && ( <> -
+
{_("Rules")}: {rulesText(goban.engine.config.rules)} - {rulesParens(goban.engine.config.rules)} +
{rulesCode(goban.engine.config.rules)}
{!!goban.engine.handicap && ( -
- - {_("Handicap")}: {goban.engine.handicap} - +
+ {_("Handicap")} +
{goban.engine.handicap}
)}