diff --git a/src/App.tsx b/src/App.tsx index c75838a..582a136 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -50,7 +50,7 @@ function App() { }, [isGameWon]) const onChar = (value: string) => { - if (currentGuess.length < 5 && guesses.length < 6) { + if (currentGuess.length < 5 && guesses.length < 6 && !isGameWon) { setCurrentGuess(`${currentGuess}${value}`) } }