Skip to content

Commit

Permalink
Merge pull request #422 from Arquisoft/Jesus-e2e-Tests
Browse files Browse the repository at this point in the history
añado dependencias que provocaban errores
  • Loading branch information
uo283055 authored Apr 29, 2024
2 parents 2f4ad26 + 8fd623b commit 4c4d66f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 4c4d66f

Please sign in to comment.