Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit eda68d6

Browse files
committed
fix(overview): Limit leaderboard to show 10 users
1 parent 48b97cd commit eda68d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Controller/OverviewCardsController.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public function leaderboard(
207207
SolutionEventRepository $solutionEventRepository,
208208
): Response {
209209
$leaderboard = $solutionEventRepository->listLeaderboard($user->getGroup(), '7 days');
210+
$leaderboard = \array_slice($leaderboard, 0, 10);
210211

211212
return $this->render('overview/cards/leaderboard.html.twig', [
212213
'leaderboard' => $leaderboard,

0 commit comments

Comments
 (0)