From 3b300f7c39ffe5e3467ee272b12b2c7dcb01662d Mon Sep 17 00:00:00 2001 From: aishug134 <94102015+aishug134@users.noreply.github.com> Date: Sat, 19 Feb 2022 12:29:00 -0500 Subject: [PATCH] Show giveup only when playing Show Give Up button only when playing, not after a game is lost (6 attempts or giving up) or won --- src/App.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 9702be72..ba5abebf 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -113,7 +113,7 @@ function App() { } const [hideGiveUp,setHideGiveUp] = useState(true) - + useEffect(()=>{ setTimeout(() => { setHideGiveUp(false) @@ -414,10 +414,10 @@ function App() { )) )} - +