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

@ -30,16 +30,18 @@ const QuestionItem = (props: QuestionItemProps) => {
{question.id}. {question.question}
</h3>
<div className="flex justify-between items-center mb-4">
<div></div>
<button onClick={() => setBookmark(!bookmark)}>
{bookmark ? (
<BookmarkCheck size={25} color="#113768" />
) : (
<Bookmark size={25} color="#113768" />
)}
</button>
</div>
{isExam && (
<div className="flex justify-between items-center mb-4">
<div></div>
<button onClick={() => setBookmark(!bookmark)}>
{bookmark ? (
<BookmarkCheck size={25} color="#113768" />
) : (
<Bookmark size={25} color="#113768" />
)}
</button>
</div>
)}
{isExam ? (
<div className="flex flex-col gap-4 items-start">
@ -70,7 +72,7 @@ const QuestionItem = (props: QuestionItemProps) => {
})}
</div>
) : (
<>
<div className="flex flex-col gap-3">
<div className="flex justify-between items-center">
<div></div>
@ -121,7 +123,7 @@ const QuestionItem = (props: QuestionItemProps) => {
<h3 className="text-lg font-bold text-black/40">Solution:</h3>
<p className="text-lg">{question.solution}</p>
</div>
</>
</div>
)}
</div>
);