diff --git a/gatherling/Views/Components/AllMatchForm.php b/gatherling/Views/Components/AllMatchForm.php index ab05a3a29..a3852ab4a 100644 --- a/gatherling/Views/Components/AllMatchForm.php +++ b/gatherling/Views/Components/AllMatchForm.php @@ -11,7 +11,7 @@ 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) { @@ -19,7 +19,7 @@ public function __construct(Player $player, string $selectedFormat, string $sele $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 : '%'); } } diff --git a/gatherling/templates/partials/allMatchForm.mustache b/gatherling/templates/partials/allMatchForm.mustache index f06df9125..5702b89e7 100644 --- a/gatherling/templates/partials/allMatchForm.mustache +++ b/gatherling/templates/partials/allMatchForm.mustache @@ -34,7 +34,7 @@