Skip to content

Commit

Permalink
Fixes issue with +1 min games played being shown
Browse files Browse the repository at this point in the history
  • Loading branch information
Zemill committed May 16, 2024
1 parent d01e503 commit bb894d6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ public function getData(Request $request)

if ($minimum_games && $minimum_games > 0) {
$filteredData = array_filter($returnData, function ($item) use ($minimum_games) {
return $item['games_played'] > $minimum_games;
return $item['games_played'] >= $minimum_games;
});

$returnData = array_values($filteredData);
Expand Down

0 comments on commit bb894d6

Please sign in to comment.