Skip to content

Commit

Permalink
Merge pull request #262 from Arquisoft/dev
Browse files Browse the repository at this point in the history
Arreglos x2
  • Loading branch information
uo285427 authored Apr 11, 2024
2 parents e1ed0b4 + a49dccb commit 3796dba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/Game.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, { useState, useEffect, useCallback } from 'react';
import React, { useState, useEffect } from 'react';
import axios from 'axios';
import { Container, Typography, Button, Snackbar, Grid, List, ListItem, ListItemText } from '@mui/material';

Expand Down Expand Up @@ -46,7 +46,7 @@ const Game = ({ username, totalQuestions, timeLimit }) => {
};

obtenerPreguntaAleatoria();
}, [axios, apiEndpoint, setQuestion, setRespuestasAleatorias, setError]);
}, [apiEndpoint, setQuestion, setRespuestasAleatorias, setError]);

const handleTimeRemaining = () => {
let minsR = Math.floor((timeLimit - timer) / 60);
Expand Down Expand Up @@ -138,7 +138,7 @@ const Game = ({ username, totalQuestions, timeLimit }) => {
updateRanking();
setAlmacenado(true);
}
}, [timer, numberClics, totalQuestions, timeLimit, almacenado]);
}, [timer, numberClics, totalQuestions, timeLimit, almacenado, apiEndpoint, correctQuestions, username]);

if(isNaN(totalQuestions)){
totalQuestions=10;
Expand Down

0 comments on commit 3796dba

Please sign in to comment.