Merge pull request #234 from ets-cfuhrman-pfe/JubaAzul/issue222

[Rythme enseignant] Fenêtre de rétroaction reste ouverte pour les prochaines questions si l'étudiant ne l'enlève pas
This commit is contained in:
Christopher (Cris) Fuhrman 2025-02-07 11:16:53 -05:00 committed by GitHub
commit 7552cbae01
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -26,8 +26,11 @@ const TeacherModeQuiz: React.FC<TeacherModeQuizProps> = ({
const [feedbackMessage, setFeedbackMessage] = useState('');
useEffect(() => {
// Close the feedback dialog when the question changes
handleFeedbackDialogClose();
setIsAnswerSubmitted(false);
}, [questionInfos]);
}, [questionInfos.question]);
const handleOnSubmitAnswer = (answer: string | number | boolean) => {
const idQuestion = Number(questionInfos.question.id) || -1;