fix(exam): fix startexam function (not finding examdata)

This commit is contained in:
shafin-r
2025-07-22 22:08:42 +06:00
parent 341a46e788
commit d57aa9b073
5 changed files with 31 additions and 25 deletions

View File

@ -82,10 +82,9 @@ export default function PretestPage() {
function handleStartExam() {
setCurrentExam(examData);
startExam();
startExam(examData); // Pass examData directly
router.push(`/exam/${id}?time=${metadata?.metadata.duration}`);
}
return (
<BackgroundWrapper>
<div className="min-h-screen flex flex-col justify-between">