Fixed a bug in the Listening exam

This commit is contained in:
Tiago Ribeiro
2023-10-05 18:07:39 +01:00
parent 73d3922f18
commit 2d095316a7

View File

@@ -108,6 +108,7 @@ export default function Listening({exam, showSolutions = false, onFinish}: Props
</div> </div>
<div className="rounded-xl flex flex-col gap-4 items-center w-full h-fit"> <div className="rounded-xl flex flex-col gap-4 items-center w-full h-fit">
<AudioPlayer <AudioPlayer
key={partIndex}
src={exam.parts[partIndex].audio.source} src={exam.parts[partIndex].audio.source}
color="listening" color="listening"
onEnd={() => setTimesListened((prev) => prev + 1)} onEnd={() => setTimesListened((prev) => prev + 1)}