mirror of
https://github.com/FranP-code/Hangman-game-with-React.git
synced 2025-10-13 00:42:32 +00:00
Console.logs removed
This commit is contained in:
@@ -12,11 +12,8 @@ const GetRandomCategory = async (language) => {
|
||||
const data = collection(db, `categories`)
|
||||
const result = await getDocs(data)
|
||||
|
||||
console.log(result)
|
||||
result.docs.map(doc => categoriesList.push(doc.get(language)))
|
||||
|
||||
console.log(categoriesList)
|
||||
|
||||
const randomNumber = Math.trunc(
|
||||
|
||||
Math.random() * (categoriesList.length - 0) + 0
|
||||
@@ -25,7 +22,6 @@ const GetRandomCategory = async (language) => {
|
||||
return categoriesList[randomNumber].toLowerCase()
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user