mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-16 06:35:03 +00:00
fix: almeida has eagle eyes
This commit is contained in:
parent
2f4fe6fde2
commit
2554e5cf9a
1 changed files with 2 additions and 2 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue