Added the firebase integration

This commit is contained in:
2021-10-19 18:38:20 -03:00
parent 9f9cf73bf3
commit 05c033b86e
7 changed files with 50 additions and 25 deletions

View File

@@ -1,6 +1,7 @@
const checkDefeat = (setEndOfGame, hangmanFrame) => {
const checkDefeat = (setEndOfGame, hangmanFrame, setCorrectLetters, selectedWord) => {
if (hangmanFrame >= 5) {
setCorrectLetters([...selectedWord])
setEndOfGame('Defeat')
}
}