mirror of
https://github.com/FranP-code/Hangman-game-with-React.git
synced 2025-10-13 00:42:32 +00:00
Added the firebase integration
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
const checkDefeat = (setEndOfGame, hangmanFrame) => {
|
||||
const checkDefeat = (setEndOfGame, hangmanFrame, setCorrectLetters, selectedWord) => {
|
||||
|
||||
if (hangmanFrame >= 5) {
|
||||
setCorrectLetters([...selectedWord])
|
||||
setEndOfGame('Defeat')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user