Console.logs removed

This commit is contained in:
2021-10-25 22:46:52 -03:00
parent df03437d5e
commit eda3f0b570
35 changed files with 6 additions and 95 deletions

View File

@@ -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)
}
}