Skip to content
Snippets Groups Projects

Quick fix for validation problem

Merged robinwilliam.hundt requested to merge quick-fix into master
2 files
+ 2
2
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -147,7 +147,7 @@ async function submitFeedback ({ state }: BareActionContext<SubmissionNotesState
@@ -147,7 +147,7 @@ async function submitFeedback ({ state }: BareActionContext<SubmissionNotesState
if (Object.keys(state.updatedFeedback.feedbackLines || {}).length > 0) {
if (Object.keys(state.updatedFeedback.feedbackLines || {}).length > 0) {
feedback.feedbackLines = state.updatedFeedback.feedbackLines
feedback.feedbackLines = state.updatedFeedback.feedbackLines
} else if (feedback.score! < SubmissionNotes.submissionType.fullScore!) {
} else if (feedback.score! < SubmissionNotes.submissionType.fullScore! && !state.hasOrigFeedback) {
throw new Error('You need to add or change a comment when setting a non full score.')
throw new Error('You need to add or change a comment when setting a non full score.')
}
}
// delete those comments that have been marked for deletion
// delete those comments that have been marked for deletion
Loading