FIX: Changement constructeur de User

Afin d'ajouter tabConv correctement
stub-api
Alban GUILHOT 3 years ago
parent 1354fe9479
commit 2729cfa89b

@ -30,9 +30,12 @@ export class User{
this.TotalCoins=totalCoins; this.TotalCoins=totalCoins;
this.CurrentSkin=currentSkin; this.CurrentSkin=currentSkin;
this.TabSkin=[...tabSkin]; this.TabSkin=[...tabSkin];
tabConv?.forEach(conv => { if(tabConv!==undefined){
this.TabConv?.push(conv); this.TabConv=[...tabConv];
}); }
else{
this.TabConv=tabConv;
}
} }
/* Brief : Function getting the name of an user */ /* Brief : Function getting the name of an user */

Loading…
Cancel
Save