fix tiny bug

This commit is contained in:
Hannah Park 2022-01-09 21:37:12 -05:00
parent 099b46849c
commit 7d0a4fd758

View file

@ -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);
} }