From be26fb2f34e1241469b970173dd366c6511eb2d7 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Mon, 29 Jul 2024 15:17:18 +0100 Subject: [PATCH] Revert "fix: can't grade self paced course" This reverts commit af1b3e61a43a243b618dd84c25641c8b35d02660. --- .../Course/components/Lesson/Exercise/Preview.svelte | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/Preview.svelte b/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/Preview.svelte index 5b4684a7..3e0bec46 100644 --- a/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/Preview.svelte +++ b/apps/dashboard/src/lib/components/Course/components/Lesson/Exercise/Preview.svelte @@ -39,6 +39,7 @@ handleGrade={handleGrade(currentQuestion.id)} {disableGrading} disabled={true} + hideGrading={$course.type === COURSE_TYPE.SELF_PACED} /> {:else if QUESTION_TYPE.CHECKBOX === currentQuestion.question_type.id} {:else if QUESTION_TYPE.TEXTAREA === currentQuestion.question_type.id} {/if} {/each}