diff --git a/src/app/profile/services/profile.service.ts b/src/app/profile/services/profile.service.ts index 87c91ca9f988eaec479661528e1a70c3e0d5e96b..a7dd3265d18e08363fc44b14f65ee64406487087 100644 --- a/src/app/profile/services/profile.service.ts +++ b/src/app/profile/services/profile.service.ts @@ -11,9 +11,7 @@ import { UserRole } from '../../shared/enum/userRole.enum'; export class ProfileService { private readonly baseUrl = 'api/users'; private currentProfile: User = null; - constructor(private http: HttpClient) { - this.getProfile(); - } + constructor(private http: HttpClient) {} public async getProfile(): Promise<User> { // Get profil by API only on first time