Skip to content

Commit

Permalink
fix: leaderboard item sort error and package-lock version (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinicius-Marques6 authored Aug 19, 2023
1 parent a690abd commit 294d25b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/commands/leaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ module.exports = {
falcoins: 'falcoins',
rank: 'rank',
wins: 'vitorias',
item: `inventory.${interaction.options.getString('item')}`,
item: `inventory.${getItem(interaction.options.getString('item').toLowerCase())}`,
vote: 'voteStreak',
};

const subcommand = interaction.options.getSubcommand();
const type = enums[subcommand];

if (subcommand === 'item') {
var item = getItem(interaction.options.getString('item').toLowerCase());
var item = type.split('.')[1];
var itemJSON = instance.items[item];

if (itemJSON === undefined) {
Expand Down

0 comments on commit 294d25b

Please sign in to comment.