Skip to content

Commit

Permalink
Merge pull request #64 from Arquisoft/tests-e2e
Browse files Browse the repository at this point in the history
arreglado error
  • Loading branch information
uo283182 authored Apr 27, 2024
2 parents c360a5b + 614f565 commit 741eea8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions webapp/src/components/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ const Game = ({ esperaFinalizacion = 3000 }) => {
inputs.forEach(input => {
input.disabled = true;
});
if(numPreguntas===numQuestions){

// eslint-disable-next-line
if(numPreguntas==numQuestions){
setTimeout(addPregunta, esperaFinalizacion); //esperar un poco para que se vean los resultados de la ultima pregunta
}
else {
Expand All @@ -105,7 +107,8 @@ const Game = ({ esperaFinalizacion = 3000 }) => {
* También se asegura de poner los inputs de la respuesta sin active, además de volverlos a habilitar
*/
const addPregunta = async () => {
if(numPreguntas===numQuestions){
// eslint-disable-next-line
if(numPreguntas==numQuestions){
calculateTime();
setFinished(true);
} else {
Expand Down

0 comments on commit 741eea8

Please sign in to comment.