Skip to content

Commit

Permalink
Fix useEffect dependency in QuizGame.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Pipe-12 committed Mar 10, 2024
1 parent e6cdfbe commit ad25dbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/components/QuizGame.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const QuizGame = () => {
generateQuestion();
setAnswerSelected(false);
}
}, [questionsNumber, isToastVisible]);
}, [questionsNumber, isToastVisible,generateQuestion]);

const generateQuestion = async () => {
try {
Expand Down

0 comments on commit ad25dbb

Please sign in to comment.