Skip to content

Commit eb6895f

Browse files
authored
Merge pull request #431 from isaacphysics/improvement/quiz-feedback-section-links
Only give a link to a quiz section if feedbackMode is set to detailed
2 parents c6da4d7 + 43d33b8 commit eb6895f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/components/elements/quiz/QuizAttemptComponent.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ function QuizContents({attempt, sections, questions, pageLink}: QuizAttemptProps
5858
{Object.keys(sections).map((k, index) => {
5959
const section = sections[k];
6060
return <tr key={k}>
61-
<td><Link replace to={pageLink(attempt, index + 1)}>{section.title}</Link></td>
61+
{attempt.feedbackMode === 'DETAILED_FEEDBACK' ?
62+
<td><Link replace to={pageLink(attempt, index + 1)}>{section.title}</Link></td> :
63+
<td>{section.title}</td>
64+
}
6265
<td>
6366
{attempt.quiz?.individualFeedback?.sectionMarks?.[section.id as string]?.correct}
6467
{" / "}

0 commit comments

Comments
 (0)