diff --git a/src/App.tsx b/src/App.tsx index ba1045e..bb7ec00 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -31,7 +31,7 @@ function App() { const onEnter = () => { if (!isWordInWordList(currentGuess)) { setIsWordNotFoundAlertOpen(true); - setTimeout(() => { + return setTimeout(() => { setIsWordNotFoundAlertOpen(false); }, 2000); }