Updated the times listened to not be global

This commit is contained in:
Tiago Ribeiro
2024-05-13 11:01:37 +01:00
parent 72fb934d4f
commit dd19b5746c

View File

@@ -95,6 +95,7 @@ export default function Listening({exam, showSolutions = false, onFinish}: Props
if (partIndex + 1 < exam.parts.length && !hasExamEnded) { if (partIndex + 1 < exam.parts.length && !hasExamEnded) {
setPartIndex(partIndex + 1); setPartIndex(partIndex + 1);
setTimesListened(0);
setExerciseIndex(showSolutions ? 0 : -1); setExerciseIndex(showSolutions ? 0 : -1);
return; return;
} }