From 8fd623bf48dc5d9ef39b5a6598853d771a18dd8c Mon Sep 17 00:00:00 2001 From: uo285427 Date: Tue, 30 Apr 2024 01:30:19 +0200 Subject: [PATCH] =?UTF-8?q?a=C3=B1ado=20dependencias=20que=20provocaban=20?= =?UTF-8?q?errores?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- webapp/src/components/Game.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/src/components/Game.js b/webapp/src/components/Game.js index f3719269..29865bbd 100644 --- a/webapp/src/components/Game.js +++ b/webapp/src/components/Game.js @@ -70,7 +70,7 @@ const Game = ({ username, totalQuestions, timeLimit, themes }) => { }; obtenerPreguntaAleatoria(); - }, [apiEndpoint, setQuestion, setRespuestasAleatorias, setError]); + }, [apiEndpoint, setQuestion, setRespuestasAleatorias, setError, themesSelected]); const handleTimeRemaining = () => { let minsR = Math.floor((timeLimit - timer) / 60); @@ -181,7 +181,7 @@ const Game = ({ username, totalQuestions, timeLimit, themes }) => { })(); setAlmacenado(true); } - }, [timer, numberClics, totalQuestions, timeLimit, almacenado, apiEndpoint, correctQuestions, username]); + }, [timer, numberClics, totalQuestions, timeLimit, almacenado, apiEndpoint, correctQuestions, username, setError]); if(isNaN(totalQuestions)){ totalQuestions=10;