Always clear current guess when changing word length

This commit is contained in:
Willie Zhu 2022-01-15 00:32:47 -05:00
parent d663cddbc6
commit a759ca0a66

View file

@ -153,6 +153,7 @@ function Game(props: GameProps) {
setGameNumber(1);
setGameState(GameState.Playing);
setGuesses([]);
setCurrentGuess("");
setTarget(randomTarget(length));
setWordLength(length);
setHint(`${length} letters`);