diff --git a/angular/src/guards/lock.guard.ts b/angular/src/guards/lock.guard.ts index 05f2bac6e9..262158528e 100644 --- a/angular/src/guards/lock.guard.ts +++ b/angular/src/guards/lock.guard.ts @@ -18,7 +18,7 @@ export class LockGuard implements CanActivate { } const redirectUrl = - authStatus === AuthenticationStatus.LoggedOut ? [this.loginpage] : [this.homepage]; + authStatus === AuthenticationStatus.LoggedOut ? this.loginpage : this.homepage; return this.router.createUrlTree([redirectUrl]); }