Skip to content

Commit

Permalink
display post survey form for team surveys
Browse files Browse the repository at this point in the history
  • Loading branch information
Mutugiii committed Jan 8, 2025
1 parent 26de66a commit c7a79f9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/app/exams/exams-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ export class ExamsViewComponent implements OnInit, OnDestroy {
initialLoad = true;
isLoading = true;
courseId: string;
isTeamSurvey = false;

constructor(
private router: Router,
Expand Down Expand Up @@ -88,7 +87,6 @@ export class ExamsViewComponent implements OnInit, OnDestroy {
this.setExam(params);
this.courseId = params.get('id');
});
this.isTeamSurvey = this.route.snapshot.params.teamId;
}

ngOnDestroy() {
Expand Down Expand Up @@ -193,7 +191,7 @@ export class ExamsViewComponent implements OnInit, OnDestroy {
}

examComplete() {
if (this.route.snapshot.data.newUser === true && !this.isTeamSurvey) {
if (this.route.snapshot.data.newUser === true) {
this.router.navigate([ '/users/submission', { id: this.submissionId } ]);
} else {
this.goBack();
Expand Down

0 comments on commit c7a79f9

Please sign in to comment.