diff --git a/app/Models/Host.php b/app/Models/Host.php index c20db38..a4f8f96 100644 --- a/app/Models/Host.php +++ b/app/Models/Host.php @@ -150,11 +150,8 @@ public function cost($price = null, $auto = true): bool if ($price !== null) { $real_price = $price; } else { - if ($this->managed_price === null) { - $real_price = $this->price; - } else { + if ($this->managed_price !== null) { $real_price = $this->managed_price; - } }