src/frontend/packages/core/src/core/endpoints.service.ts
Function canActivate
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
canActivate(route: ActivatedRouteSnapshot, routeState: RouterStateSnapshot): Observable<boolean> {
// Reroute user to endpoint/no endpoint screens if there are no connected or registered endpoints
return observableCombineLatest(
this.store.select('auth'),
this.store.select(endpointStatusSelector)