From 9b1da971766de61d65ceed023fe774f3a455b21f Mon Sep 17 00:00:00 2001
From: Jeremie BRISON <ext.sopra.jbrison@grandlyon.com>
Date: Tue, 19 Jan 2021 15:16:29 +0100
Subject: [PATCH] fix : remove useless call api

---
 src/app/profile/services/profile.service.ts | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/app/profile/services/profile.service.ts b/src/app/profile/services/profile.service.ts
index 87c91ca9f..a7dd3265d 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
-- 
GitLab