Skip to content

Commit

Permalink
Update Jugar.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago21112001 authored Mar 25, 2024
1 parent 0511422 commit 4adba80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/src/components/pages/Jugar.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function Jugar() {
} else {
getQuestions();
}
}, [isLoggedIn, navigate]);
}, [isLoggedIn, navigate, getQuestions]);

useEffect(() => {
if (!quizFinished && questionsLoaded) {
Expand All @@ -68,7 +68,7 @@ function Jugar() {
}, 1000);
return () => clearInterval(countdown);
}
}, [quizFinished, questionsLoaded, currentQuestionIndex, timer]);
}, [quizFinished, questionsLoaded, currentQuestionIndex, timer, handleNextQuestion]);

const handleAnswerSelect = (index) => {
setSelectedAnswerIndex(index);
Expand Down

0 comments on commit 4adba80

Please sign in to comment.