Updated the clock of the Speaking timer

This commit is contained in:
Tiago Ribeiro
2023-07-21 12:41:44 +01:00
parent fea788bdc4
commit eae0a4ae4e
3 changed files with 4 additions and 5 deletions

View File

@@ -80,11 +80,11 @@ export default function Speaking({id, title, text, type, prompts, onNext, onBack
<>
<div className="flex gap-4 items-center">
<span className="text-xs w-9">
{Math.round(recordingDuration / 60)
{Math.floor(recordingDuration / 60)
.toString(10)
.padStart(2, "0")}
:
{Math.round(recordingDuration % 60)
{Math.floor(recordingDuration % 60)
.toString(10)
.padStart(2, "0")}
</span>

View File

@@ -276,7 +276,6 @@ export default function Page() {
onViewResults={() => {
setShowSolutions(true);
setModuleIndex(0);
setExam(exams[0]);
}}
scores={aggregateScoresByModule(userSolutions)}
/>

View File

@@ -107,8 +107,8 @@ const moduleMarkings: {[key in Module]: {[key in Type]: {[key: number]: number}}
general: writingMarking,
},
speaking: {
academic: academicMarking,
general: academicMarking,
academic: writingMarking,
general: writingMarking,
},
};