kopia lustrzana https://github.com/lynn/hello-wordl
Always clear current guess when changing word length
rodzic
d663cddbc6
commit
a759ca0a66
|
@ -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`);
|
||||||
|
|
Ładowanie…
Reference in New Issue