diff --git a/src/app/components/shared/header/header.component.ts b/src/app/components/shared/header/header.component.ts index c57ae654c08b16823232c0b5d4339d4946cd6fee..b3bb28fb8b2d72159f3b96d4ca444239d73bbfcc 100644 --- a/src/app/components/shared/header/header.component.ts +++ b/src/app/components/shared/header/header.component.ts @@ -52,20 +52,7 @@ export class HeaderComponent implements OnInit { } goToHomepage() { - const role: UserRole = this.user !== undefined ? this.user.role : undefined; - let route: string; - - switch (role) { - case UserRole.PARTICIPANT: - route = '/participant'; - break; - case UserRole.CREATOR: - route = '/creator'; - break; - default: - route = '/'; - } - this.router.navigate([route]); + this.router.navigate(['/home']); } useLanguage(language: string) {