3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-16 14:45:02 +00:00

fix: almeida has eagle eyes

This commit is contained in:
Ruby 2024-06-02 17:57:00 +02:00
parent 2f4fe6fde2
commit 2554e5cf9a
No known key found for this signature in database
GPG key ID: 74D9DB37B03A4804

View file

@ -108,11 +108,11 @@ export const CasesUserCmd = modActionsCmd({
const isLastPage = page === totalPages;
const firstCaseNum = (page - 1) * casesPerPage + 1;
const lastCaseNum = isLastPage ? cases.length : page * casesPerPage;
const lastCaseNum = isLastPage ? casesToDisplay.length : page * casesPerPage;
const title =
totalPages === 1
? `Cases for ${userName} (${lines.length} total)`
: `Most recent cases ${firstCaseNum}-${lastCaseNum} of ${cases.length} for ${userName}`;
: `Most recent cases ${firstCaseNum}-${lastCaseNum} of ${casesToDisplay.length} for ${userName}`;
const embed = {
author: {