diff --git a/code/gms-frontend/src/app/components/home/home.component.ts b/code/gms-frontend/src/app/components/home/home.component.ts index 099b3813..aed20f3a 100644 --- a/code/gms-frontend/src/app/components/home/home.component.ts +++ b/code/gms-frontend/src/app/components/home/home.component.ts @@ -51,7 +51,7 @@ export class HomeComponent implements OnInit { return this.homeService.getData().pipe(map((response): HomeData => { const data: HomeData = response; // TODO Refactor the app to allow only 1 type of role - data.role = user.roles?.[0]; + data.role = user.roles[0]; return data; })); }