diff --git a/app/Livewire/Public/StationSearch.php b/app/Livewire/Public/StationSearch.php index e1966ce..a36f0bd 100644 --- a/app/Livewire/Public/StationSearch.php +++ b/app/Livewire/Public/StationSearch.php @@ -28,6 +28,27 @@ class StationSearch extends Component public ?string $apiError = null; + public function updatedFuelType(): void + { + if (! empty($this->meta)) { + $this->findStations(); + } + } + + public function updatedSort(): void + { + if (! empty($this->meta)) { + $this->findStations(); + } + } + + public function updatedRadius(): void + { + if (! empty($this->meta)) { + $this->findStations(); + } + } + public function findStations(): void { $this->validate();