diff --git a/src/Controller/OverviewCardsController.php b/src/Controller/OverviewCardsController.php index cb26ff5..8a377c3 100644 --- a/src/Controller/OverviewCardsController.php +++ b/src/Controller/OverviewCardsController.php @@ -207,6 +207,7 @@ public function leaderboard( SolutionEventRepository $solutionEventRepository, ): Response { $leaderboard = $solutionEventRepository->listLeaderboard($user->getGroup(), '7 days'); + $leaderboard = \array_slice($leaderboard, 0, 10); return $this->render('overview/cards/leaderboard.html.twig', [ 'leaderboard' => $leaderboard,