We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 421bd7b commit d628cd1Copy full SHA for d628cd1
1 file changed
src/course-outline/outline-sidebar/info-sidebar/SubsectionSettings.tsx
@@ -183,7 +183,9 @@ const AssessmentResultVisibilitySection = ({ subsectionId, onChange }: SubProps)
183
<Form.Checkbox
184
checked={localState?.showCorrectness === 'past_due'}
185
className="mt-2"
186
- onChange={() => setLocalState({ showCorrectness: 'past_due' })}
+ onChange={(e: React.ChangeEvent<HTMLInputElement>) => setLocalState({
187
+ showCorrectness: e.target.checked ? 'past_due': 'never',
188
+ })}
189
>
190
<FormattedMessage {...messages.subsectionAssessmentResultsCheckbox} />
191
</Form.Checkbox>
0 commit comments