From ceb4b6b465f00a53defdda681138886b5981830b Mon Sep 17 00:00:00 2001 From: Rashid Khalil Date: Tue, 9 May 2023 23:32:34 +0500 Subject: [PATCH] duplicate navbar once the user is logged in --- src/app/shared/show-authed.directive.ts | 1 + 1 file changed, 1 insertion(+) 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)