Input for mobile users done

This commit is contained in:
2021-10-19 20:30:31 -03:00
parent 6b65f9afdc
commit ff02ece0dc
44 changed files with 4399 additions and 23328 deletions

View File

@@ -3,21 +3,15 @@ import { getFirestore, collection, doc, getDocs, getDoc } from 'firebase/firesto
import GetRandomCategory from './GetRandomCategory';
import SelectRandomWord from './SelectRandomWord';
const BringTheWords = async (language = false, category = false, selectedWord) => {
const BringTheWords = async (language = 'english', category = false, selectedWord) => {
if (!selectedWord) {
console.log(category)
console.log(language)
if (!language) {
language = 'english'
}
if (!category) {
if (!category || category === 'false') {
category = await GetRandomCategory()