Skip to content

Commit

Permalink
Fix typo preventing matches filter from showing
Browse files Browse the repository at this point in the history
  • Loading branch information
bakert committed Nov 26, 2024
1 parent e323413 commit c5f5030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gatherling/Views/Components/AllMatchForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ class AllMatchForm extends Component
public DropMenu $formatDropMenuP;
public DropMenu $seriesDropMenuP;
public DropMenu $seasonDropMenuP;
public DropMenu $oppDropMenu;
public DropMenu $oppDropMenuP;

public function __construct(Player $player, string $selectedFormat, string $selectedSeries, string $selectedSeason, string $selectedOpponent)
{
$this->formatDropMenuP = selector(opts($player->getFormatsPlayed()), 'format', '-- Format --', $selectedFormat ? $selectedFormat : '%');
$this->seriesDropMenuP = selector(opts($player->getSeriesPlayed()), 'series', '-- Series --', $selectedSeries ? $selectedSeries : '%');
$this->seasonDropMenuP = selector(opts($player->getSeasonsPlayed()), 'season', '-- Season --', $selectedSeason ? $selectedSeason : '%');
$opts = array_map(fn (array $item) => ['value' => $item['opp'], 'text' => $item['opp'] . ' [' . $item['cnt'] . ']'], $player->getOpponents());
$this->oppDropMenu = selector($opts, 'opp', '-- Opponent --', $selectedOpponent ? $selectedOpponent : '%');
$this->oppDropMenuP= selector($opts, 'opp', '-- Opponent --', $selectedOpponent ? $selectedOpponent : '%');
}
}

Expand Down

0 comments on commit c5f5030

Please sign in to comment.