Skip to content

Commit

Permalink
Fix array_slice when listing pending debt
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx authored Oct 25, 2024
1 parent ff08049 commit 3433105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Slack/DebtListBlockBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function buildBlocks(string $usedId): array
}

if (\count($blocks) >= 50) {
$blocks = \array_slice($blocks, 47);
$blocks = \array_slice($blocks, -47);
$blocks[] = [
'type' => 'divider',
];
Expand Down

0 comments on commit 3433105

Please sign in to comment.