Skip to content

Commit

Permalink
Fix client failing test. Check if participation due date exists.
Browse files Browse the repository at this point in the history
  • Loading branch information
EneaGore authored Jun 21, 2024
1 parent 5d266aa commit 56b3441
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,11 @@ export class TextEditorComponent implements OnInit, OnDestroy, ComponentCanDeact
this.textExercise.dueDate && this.participation.initializationDate && dayjs(this.participation.initializationDate).isAfter(this.textExercise.dueDate);
const isAlwaysActive = !this.result && (!this.textExercise.dueDate || isInitializationAfterDueDate);

this.isAllowedToSubmitAfterDueDate = !!isInitializationAfterDueDate && hasExerciseDueDatePassed(this.textExercise, this.participation);
if(this.participation.individualDueDate){

Check failure on line 184 in src/main/webapp/app/exercises/text/participate/text-editor.component.ts

View workflow job for this annotation

GitHub Actions / client-style

Replace `(this.participation.individualDueDate)` with `·(this.participation.individualDueDate)·`
this.isAllowedToSubmitAfterDueDate = !!isInitializationAfterDueDate && hasExerciseDueDatePassed(this.textExercise, this.participation);
} else {
this.isAllowedToSubmitAfterDueDate = !!isInitializationAfterDueDate;
}
this.isAlwaysActive = !!isAlwaysActive;
}

Expand Down

0 comments on commit 56b3441

Please sign in to comment.