Skip to content

Commit

Permalink
Fix broker command (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPowerGamerBR committed Jan 20, 2025
1 parent f445172 commit 45c537d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class BrokerCommand(val loritta: LorittaBot) : SlashCommandDeclarationWrapper {

val totalPagesZeroIndexed = ceil(userStockAssets.size / TICKERS_PER_PAGE.toDouble()).toInt() - 1
val userStockAssetsForThisPage = userStockAssets
.drop(page)
.drop(page * TICKERS_PER_PAGE)
.take(TICKERS_PER_PAGE)

if (userStockAssetsForThisPage.isEmpty())
Expand Down

0 comments on commit 45c537d

Please sign in to comment.