Skip to content

Commit

Permalink
Merge pull request #1008 from Heroes-Profile/1007-minimum-games-filte…
Browse files Browse the repository at this point in the history
…r-for-heroes-is-one-off

Fixes issue with +1 min games played being shown
  • Loading branch information
Zemill authored May 16, 2024
2 parents d01e503 + bb894d6 commit c06d02d
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 c06d02d

Please sign in to comment.