Skip to content

Commit

Permalink
removed confirm interuption from leavers component
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Hardy authored and Jonathan Hardy committed May 30, 2022
1 parent c6082f2 commit 955ce3f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/app/features/workplace/leavers/leavers.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,7 @@ export class LeaversComponent extends Question implements OnInit, OnDestroy {
}

protected onSuccess(): void {
if (this.establishment.leavers && Array.isArray(this.establishment.leavers) && !this.return) {
this.router.navigate(['/workplace', this.establishment.uid, 'confirm-leavers']);
this.submitAction.action = null;
} else {
this.nextRoute = ['/workplace', `${this.establishment.uid}`, 'check-answers'];
}
this.nextRoute = ['/workplace', `${this.establishment.uid}`, 'check-answers'];
}

private clearValidators(index: number) {
Expand Down

0 comments on commit 955ce3f

Please sign in to comment.