diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.php index 1d82ead9e..4626a9135 100644 --- a/app/Livewire/Server/Show.php +++ b/app/Livewire/Server/Show.php @@ -392,9 +392,9 @@ public function checkHetznerServerStatus(bool $manual = false) if ($this->server->hetzner_server_status !== $this->hetznerServerStatus) { $this->server->hetzner_server_status = $this->hetznerServerStatus; $this->server->update(['hetzner_server_status' => $this->hetznerServerStatus]); - if ($manual) { - $this->dispatch('success', 'Server status refreshed: '.ucfirst($this->hetznerServerStatus ?? 'unknown')); - } + } + if ($manual) { + $this->dispatch('success', 'Server status refreshed: '.ucfirst($this->hetznerServerStatus ?? 'unknown')); } // If Hetzner server is off but Coolify thinks it's still reachable, update Coolify's state