diff --git a/apps/frontend/src/routes/_verifyingLayout/verifying/index.lazy.tsx b/apps/frontend/src/routes/_verifyingLayout/verifying/index.lazy.tsx index 7a4a73b..771a45d 100644 --- a/apps/frontend/src/routes/_verifyingLayout/verifying/index.lazy.tsx +++ b/apps/frontend/src/routes/_verifyingLayout/verifying/index.lazy.tsx @@ -200,7 +200,7 @@ const formattedResult = answersData?.data.reduce((acc, item) => { // Effect untuk mengatur answers dari data yang diambil useEffect(() => { if (!assessmentId) { - console.error("Assessment ID tidak ditemukan"); + console.error(); return; } @@ -762,8 +762,8 @@ console.log("unanswered questions:", unanswered.length); {question.options?.length > 0 ? (
handleAnswerChange(question.questionId, value)} + value={answers[questionId] || ""} + onValueChange={(value) => handleAnswerChange(questionId, value)} className="flex flex-col gap-2" > {question.options.map((option: any) => ( @@ -773,12 +773,12 @@ console.log("unanswered questions:", unanswered.length); ? "bg-[--primary-color] text-white border-[--primary-color]" : "bg-gray-200 text-black border-gray-200" }`} - onClick={() => handleAnswerChange(question.questionId, option.optionId)} + onClick={() => handleAnswerChange(questionId, option.optionId)} >