From c2f5f5ce92d41489b6c161697cb07b0bea333465 Mon Sep 17 00:00:00 2001 From: Andy Aylward Date: Tue, 10 Mar 2026 16:30:28 -0400 Subject: [PATCH] fix(golf): restore missing Knock button during play phase The Knock button was gated on `gameState.allPlayersPeeked`, which the backend resets to false when transitioning from peeking to playing. This made the button permanently hidden. The `gamePhase === 'playing'` check already guarantees peeking is complete, so the redundant flag is removed. Co-Authored-By: Claude Opus 4.6 --- src/apps/golf/components/GolfGame.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/golf/components/GolfGame.tsx b/src/apps/golf/components/GolfGame.tsx index 4102f7f..29679e7 100644 --- a/src/apps/golf/components/GolfGame.tsx +++ b/src/apps/golf/components/GolfGame.tsx @@ -585,7 +585,7 @@ const GolfGame = ({ onGameIdChange, onPlayerIdChange, onPlayerNameChange, onConn ) : null} - {gameState.gamePhase === 'playing' && !gameState.drawnCard && gameState.allPlayersPeeked && ( + {gameState.gamePhase === 'playing' && !gameState.drawnCard && (