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:
@@ -2,12 +2,16 @@ export const RecoveryCurrentCategory = (setCategory) => {
|
||||
|
||||
if (localStorage.getItem('category')) {
|
||||
|
||||
const category = localStorage.getItem('category')
|
||||
|
||||
console.log(category)
|
||||
setCategory(category)
|
||||
localStorage.removeItem('category')
|
||||
|
||||
if (localStorage.getItem('category') === 'false') {
|
||||
|
||||
setCategory(false)
|
||||
//setCategory(false)
|
||||
}
|
||||
|
||||
setCategory(localStorage.getItem('category'))
|
||||
localStorage.removeItem('category')
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user