From 7d0a4fd758f941830b18738959633ca24bf8ebab Mon Sep 17 00:00:00 2001 From: Hannah Park Date: Sun, 9 Jan 2022 21:37:12 -0500 Subject: [PATCH] fix tiny bug --- src/App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }