Skip to content

Commit

Permalink
Fix variants not matching types
Browse files Browse the repository at this point in the history
  • Loading branch information
tnfAngel committed Dec 24, 2023
1 parent 21f7938 commit 64863e8
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/structures/party/PartyMemberMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,15 +62,7 @@ class PartyMemberMeta extends Meta<PartyMemberSchema> {
* The cosmetic variants
*/
public get variants(): CosmeticsVariantMeta {
const variants = this.get('Default:AthenaCosmeticLoadoutVariants_j')?.AthenaCosmeticLoadoutVariants?.vL;
if (!variants) return {};

const camelCaseVariants: any = {};
Object.keys(variants).forEach((k) => {
camelCaseVariants[`${k.charAt(0).toLocaleLowerCase()}${k.slice(1)}`] = variants[k];
});

return camelCaseVariants;
return this.get('Default:AthenaCosmeticLoadoutVariants_j')?.AthenaCosmeticLoadoutVariants?.vL || {};
}

/**
Expand Down

0 comments on commit 64863e8

Please sign in to comment.