Skip to content

Commit

Permalink
fix: index bullshit
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Mar 4, 2024
1 parent e4ec74a commit c692ae2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const executeButtonInteraction = async (interaction: ButtonInteraction) =
.setLabel("Close")
.setStyle(ButtonStyle.Danger);

const row = getComponentsRow({ matchId, additionalComponents: [closeButton], participantIndex: pIndex });
const row = getComponentsRow({ matchId, additionalComponents: [closeButton], participantIndex: index });

await interaction.message.edit({
files: [file],
Expand Down Expand Up @@ -68,7 +68,7 @@ export const executeButtonInteraction = async (interaction: ButtonInteraction) =
.setLabel("Close")
.setStyle(ButtonStyle.Danger);

const row = getComponentsRow({ matchId, additionalComponents: [closeButton], participantIndex: pIndex });
const row = getComponentsRow({ matchId, additionalComponents: [closeButton], participantIndex: index });

await interaction.message.edit({
files: [file],
Expand Down

0 comments on commit c692ae2

Please sign in to comment.