Skip to content

Commit

Permalink
[FM] Automated formating frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Aug 29, 2024
1 parent ebd55a9 commit a8e318e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,13 @@ export class KeyResultFormComponent implements OnInit {
]);

this.users$.subscribe((users) => {
this.getUserName().subscribe(userName =>{
this.getUserName().subscribe((userName) => {
users.forEach((user) => {
if (user.firstname + ' ' + user.lastname === userName) {
this.keyResultForm.controls['owner'].setValue(user);
}
});
})
});
});
}

Expand Down
3 changes: 1 addition & 2 deletions frontend/src/app/shared/guards/auth.guard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { inject } from '@angular/core';
import { OidcSecurityService } from 'angular-auth-oidc-client';
import { map, take } from 'rxjs';


//Not used, can be deleted
export const authGuard: CanActivateFn = (route, state) => {
const oidcSecurityService = inject(OidcSecurityService);
Expand All @@ -12,7 +11,7 @@ export const authGuard: CanActivateFn = (route, state) => {
take(1),
map(({ isAuthenticated }) => {
// allow navigation if authenticated
return isAuthenticated
return isAuthenticated;

// redirect if not authenticated
}),
Expand Down

0 comments on commit a8e318e

Please sign in to comment.