diff --git a/src/app/shared/show-authed.directive.ts b/src/app/shared/show-authed.directive.ts index 40bdc5f91..6ccd7ff42 100644 --- a/src/app/shared/show-authed.directive.ts +++ b/src/app/shared/show-authed.directive.ts @@ -22,6 +22,7 @@ export class ShowAuthedDirective implements OnInit { ngOnInit() { this.userService.isAuthenticated.subscribe((isAuthenticated: boolean) => { + this.viewContainer.clear(); if ( (isAuthenticated && this.condition) || (!isAuthenticated && !this.condition)