diff --git a/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.spec.ts b/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.spec.ts index 142d73875..f7fb75e28 100644 --- a/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.spec.ts +++ b/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.spec.ts @@ -82,7 +82,7 @@ describe('ManageTeamComponent', () => { expect(users.length).toEqual(20); expect(message).toContain('please refine your search to see more results.'); expect(displayMessage).toBeTruthy(); - expect(displayAddButton).toBeFalsy(); + expect(displayAddButton).toBeTruthy(); done(); } ); @@ -111,7 +111,7 @@ describe('ManageTeamComponent', () => { ([users, displayAddButton, isAnErrorMessage, displayMessage]: [JusticeUserResponse[], boolean, boolean, boolean]) => { expect(users.length).toEqual(10); expect(displayMessage).toBeFalsy(); - expect(displayAddButton).toBeFalsy(); + expect(displayAddButton).toBeTruthy(); expect(isAnErrorMessage).toBeFalsy(); done(); } diff --git a/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.ts b/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.ts index a35d5b76c..248e169db 100644 --- a/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.ts +++ b/AdminWebsite/AdminWebsite/ClientApp/src/app/manage-team/manage-team/manage-team.component.ts @@ -63,7 +63,7 @@ export class ManageTeamComponent implements OnInit, OnDestroy { this.users$ = this.justiceUserService.filteredUsers$.pipe( takeUntil(this.destroyed$), tap(users => { - this.displayAddButton$.next(false); + this.displayAddButton$.next(true); this.isAnErrorMessage$.next(false); this.displayMessage$.next(false); this.message$.next(null);