mirror of
https://github.com/FranP-code/Hangman-game-with-React.git
synced 2025-10-13 00:42:32 +00:00
Input for mobile users done
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user