Some light bug solving
This commit is contained in:
@@ -57,16 +57,18 @@ export default function Speaking({id, title, text, type, prompts, onNext, onBack
|
|||||||
))}
|
))}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex flex-col gap-4">
|
{prompts && prompts.length > 0 && (
|
||||||
<span className="font-bold">You should talk about the following things:</span>
|
<div className="flex flex-col gap-4">
|
||||||
<div className="flex flex-col gap-1 ml-4">
|
<span className="font-bold">You should talk about the following things:</span>
|
||||||
{prompts.map((x, index) => (
|
<div className="flex flex-col gap-1 ml-4">
|
||||||
<li className="italic" key={index}>
|
{prompts.map((x, index) => (
|
||||||
{x}
|
<li className="italic" key={index}>
|
||||||
</li>
|
{x}
|
||||||
))}
|
</li>
|
||||||
|
))}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ReactMediaRecorder
|
<ReactMediaRecorder
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ export default function Listening({exam, showSolutions = false, onFinish}: Props
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!userSolutions.map((x) => x.score.missing).every((x) => x === 0) && !showSolutions && !hasExamEnded) {
|
if (![...userSolutions.map((x) => x.score.missing), solution?.score.missing].every((x) => x === 0) && !showSolutions && !hasExamEnded) {
|
||||||
setShowBlankModal(true);
|
setShowBlankModal(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ export default function Reading({exam, showSolutions = false, onFinish}: Props)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!userSolutions.map((x) => x.score.missing).every((x) => x === 0) && !showSolutions && !hasExamEnded) {
|
if (![...userSolutions.map((x) => x.score.missing), solution?.score.missing].every((x) => x === 0) && !showSolutions && !hasExamEnded) {
|
||||||
setShowBlankModal(true);
|
setShowBlankModal(true);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user