Fix when VOIP order doesnt have an address or number

This commit is contained in:
Deon George 2021-12-14 13:14:14 +11:00
parent 7908676063
commit 8a8e299c7b

View File

@ -59,7 +59,7 @@ class Voip extends ServiceType implements ServiceItem
*/ */
public function getServiceNameAttribute(): string public function getServiceNameAttribute(): string
{ {
return $this->service_number ?: $this->service_address; return $this->service_number ?: ($this->service_address ?: 'Unknown');
} }
/* METHODS */ /* METHODS */