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:
@@ -66,8 +66,7 @@ function Game() {
|
||||
|
||||
let word = await BringTheWords(language, category, selectedWord)
|
||||
word = word.toLowerCase()
|
||||
|
||||
console.log(word)
|
||||
|
||||
await setSelectedWord(word)
|
||||
await setDisplayApp(true)
|
||||
}
|
||||
@@ -91,7 +90,6 @@ function Game() {
|
||||
bringWordFromFirebase()
|
||||
}
|
||||
|
||||
console.log(category)
|
||||
}, [categoryIsReady])
|
||||
|
||||
|
||||
@@ -100,7 +98,6 @@ function Game() {
|
||||
const registerKeys = e => {
|
||||
|
||||
if (displayApp) {
|
||||
console.log(e)
|
||||
|
||||
let currentKey
|
||||
|
||||
|
||||
@@ -24,9 +24,6 @@ const AppHeader = ({language, category, displayCategories, setDisplayCategories,
|
||||
if (category) {
|
||||
|
||||
if (category !== 'false') {
|
||||
|
||||
|
||||
console.log(category);
|
||||
|
||||
let categoryText = category.split('')
|
||||
categoryText[0] = categoryText[0].toUpperCase()
|
||||
|
||||
@@ -48,7 +48,6 @@ const Categories = ({AppLanguage, displayCategories, category, setCategory, curr
|
||||
Bring_All_Categories(setCategories, setStrech, AppLanguage, category)
|
||||
Bring_All_Languages(setLanguages)
|
||||
|
||||
console.log(categories)
|
||||
}, [])
|
||||
|
||||
return (
|
||||
@@ -62,8 +61,6 @@ const Categories = ({AppLanguage, displayCategories, category, setCategory, curr
|
||||
|
||||
languages.map((language) => {
|
||||
|
||||
console.log(AppLanguage);
|
||||
|
||||
if (language === capitalize(AppLanguage)) {
|
||||
|
||||
return <option key={language} value={language} selected > {language.toUpperCase()} </option>
|
||||
|
||||
@@ -5,10 +5,6 @@ import capitalize from "../../../../../General Scripts/Capilazate";
|
||||
|
||||
|
||||
const Bring_All_Categories = async (setCategories, setStrech, language) => {
|
||||
|
||||
console.log(language)
|
||||
|
||||
|
||||
|
||||
try {
|
||||
|
||||
@@ -30,13 +26,11 @@ const Bring_All_Categories = async (setCategories, setStrech, language) => {
|
||||
|
||||
categories = categories.map(doc => [capitalize(doc[0], true), doc[1]])
|
||||
|
||||
console.log(categories)
|
||||
setCategories(await categories)
|
||||
|
||||
AdjustHeightCategories(await categories, setStrech)
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -17,7 +17,6 @@ const Bring_All_Languages = async (setLanguage) => {
|
||||
setLanguage(languages)
|
||||
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
const AdjustHeightCategories = (categories, setStrech) => {
|
||||
|
||||
console.log(categories)
|
||||
|
||||
if (categories.length >= 5) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user