Skip to content

Commit

Permalink
fix(commands): find emojis update, laststats date from on chart update (
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams authored May 7, 2024
1 parent ac2e658 commit 9475fd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/dateStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const getCardWithInfo = async ({

const head = []

if (updateStartDate) startDate = playerLastStats.from
if (updateStartDate) startDate = new Date(playerLastStats.from).getTime()

if (startDate !== endDateToRealTimeStamp) head.push({
name: 'From - To', value: [new Date(startDate).toDateString(), '\n', new Date(endDateToRealTimeStamp).toDateString()].join(' '),
Expand Down
2 changes: 1 addition & 1 deletion interactions/selectmenus/findSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = {
const excludedPlayers = interaction.message.components.at(3)
const playerStatsCard = interaction.message.embeds.filter(e => e.data.image.url.includes('graph'))?.at(0)

updateDefaultOption(optionsComponents, interaction.values[0], true)
updateDefaultOption(optionsComponents, interaction.values[0], false)
getCardByUserType(newUser, interaction)

if (newUser) {
Expand Down

0 comments on commit 9475fd0

Please sign in to comment.