Always clear current guess when changing word length

pull/26/head
Willie Zhu 2022-01-15 00:32:47 -05:00
rodzic d663cddbc6
commit a759ca0a66
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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