Skip to content
Snippets Groups Projects
Commit 9b1da971 authored by Jérémie BRISON's avatar Jérémie BRISON
Browse files

fix : remove useless call api

parent 056b85c3
No related branches found
No related tags found
3 merge requests!68Recette,!67Dev,!59Fix/bug-UselessCallApiAndStructureClaim
...@@ -11,9 +11,7 @@ import { UserRole } from '../../shared/enum/userRole.enum'; ...@@ -11,9 +11,7 @@ import { UserRole } from '../../shared/enum/userRole.enum';
export class ProfileService { export class ProfileService {
private readonly baseUrl = 'api/users'; private readonly baseUrl = 'api/users';
private currentProfile: User = null; private currentProfile: User = null;
constructor(private http: HttpClient) { constructor(private http: HttpClient) {}
this.getProfile();
}
public async getProfile(): Promise<User> { public async getProfile(): Promise<User> {
// Get profil by API only on first time // Get profil by API only on first time
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment