diff --git a/app/Http/Livewire/BitcoinEvent/BitcoinEventTable.php b/app/Http/Livewire/BitcoinEvent/BitcoinEventTable.php index 3b17e63d..b0bdd83e 100644 --- a/app/Http/Livewire/BitcoinEvent/BitcoinEventTable.php +++ b/app/Http/Livewire/BitcoinEvent/BitcoinEventTable.php @@ -14,6 +14,13 @@ class BitcoinEventTable extends Component protected $queryString = ['year']; + public function mount() + { + if (!$this->year) { + $this->year = now()->year; + } + } + public function render() { return view('livewire.bitcoin-event.bitcoin-event-table', [