From a68253891be865b6b6dc9d70a26e2ed5a247a4ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Fern=C3=A1ndez=20Noriega?= Date: Thu, 11 Apr 2024 23:46:44 +0200 Subject: [PATCH] Debugging console logs removed --- webapp/src/components/Question.jsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/webapp/src/components/Question.jsx b/webapp/src/components/Question.jsx index 337815a..55d93fa 100644 --- a/webapp/src/components/Question.jsx +++ b/webapp/src/components/Question.jsx @@ -34,13 +34,8 @@ const Question = (props) => { } }, [counter]); - useEffect(() => { - console.log(renderedImages) - }, [renderedImages]); - const fetchQuestions = async () => { - console.log("Questions are going to be fetched") try { setRenderedImages(0) let auxQuestions = [] @@ -48,7 +43,6 @@ const Question = (props) => { let question = ((await axios.get(`${apiEndpoint}/${props.type}/${props.category}/question`)).data) auxQuestions.push(question) } - console.log(auxQuestions) setQuestions(auxQuestions) setLoading(false) } catch (error) { @@ -57,7 +51,6 @@ const Question = (props) => { }; const answerQuestion = async (answer, question) => { - console.log("Answered question: "+currentQuestion) try { setLoading(true); setRenderedImages(0)