fix tiny bug
This commit is contained in:
parent
099b46849c
commit
7d0a4fd758
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ function App() {
|
||||||
const onEnter = () => {
|
const onEnter = () => {
|
||||||
if (!isWordInWordList(currentGuess)) {
|
if (!isWordInWordList(currentGuess)) {
|
||||||
setIsWordNotFoundAlertOpen(true);
|
setIsWordNotFoundAlertOpen(true);
|
||||||
setTimeout(() => {
|
return setTimeout(() => {
|
||||||
setIsWordNotFoundAlertOpen(false);
|
setIsWordNotFoundAlertOpen(false);
|
||||||
}, 2000);
|
}, 2000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue