From fd048c3aee3ecc1b994ef20a80eff2f0d845c2a2 Mon Sep 17 00:00:00 2001 From: Mauro F C Fedatto Date: Tue, 12 Dec 2023 18:29:45 -0300 Subject: [PATCH] Update App.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resolvendo situação em que o jogo recomeçava com as tentativas "queimadas" anteriormente. --- 6_PROJETO_SECRET_WORD/secretword/src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/6_PROJETO_SECRET_WORD/secretword/src/App.js b/6_PROJETO_SECRET_WORD/secretword/src/App.js index 2faa2ee..598185a 100644 --- a/6_PROJETO_SECRET_WORD/secretword/src/App.js +++ b/6_PROJETO_SECRET_WORD/secretword/src/App.js @@ -66,6 +66,7 @@ function App() { setPickedCategory(category); setPickedWord(word); setLetters(wordLetters); + setGuesses(3); // sem esta instrução, o jogo estava reiniciando com as tentaivas "queimadas" anteriormente. setGameStage(stages[1].name); }, [pickWordAndCategory]);