Skip to content

Commit

Permalink
fix variants being PascalCase
Browse files Browse the repository at this point in the history
  • Loading branch information
tnfAngel committed Dec 24, 2023
1 parent 6cf2891 commit feb401f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/structures/party/PartyMemberMeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ class PartyMemberMeta extends Meta<PartyMemberSchema> {
const variants = this.get('Default:AthenaCosmeticLoadoutVariants_j')?.AthenaCosmeticLoadoutVariants?.vL;
if (!variants) return {};

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

return pascalCaseVariants;
return camelCaseVariants;
}

/**
Expand Down

0 comments on commit feb401f

Please sign in to comment.