Skip to content

Commit

Permalink
update last (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDams authored Nov 2, 2023
1 parent 8e3967c commit 28935fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/last.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ const getLastCard = async ({
const pagination = getPageSlice(page)

// Removing multiple ids
let filteredHistory = playerHistory.map(e => e.matchId).filter((e, i, a) => a.indexOf(e) === i).slice(0, playerHistory.length)
let filteredHistory = playerHistory.map(e => e.matchId).filter((e, i, a) => a.indexOf(e) === i).slice(0, playerHistory.games)
const maxPage = getMaxPage(filteredHistory)
filteredHistory = filteredHistory.slice(pagination.start, pagination.end)

Expand Down

0 comments on commit 28935fb

Please sign in to comment.