diff --git a/app/Livewire/Project/Shared/ScheduledTask/Add.php b/app/Livewire/Project/Shared/ScheduledTask/Add.php index f170a0a6f..717007bc0 100644 --- a/app/Livewire/Project/Shared/ScheduledTask/Add.php +++ b/app/Livewire/Project/Shared/ScheduledTask/Add.php @@ -102,7 +102,7 @@ public function submit() } } - private function saveScheduledTask(): mixed + private function saveScheduledTask(): void { try { $task = new ScheduledTask; @@ -128,7 +128,7 @@ private function saveScheduledTask(): mixed $this->dispatch('refreshTasks'); $this->dispatch('success', 'Scheduled task added.'); } catch (\Throwable $e) { - return handleError($e, $this); + handleError($e, $this); } }