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