Fix when VOIP order doesnt have an address or number
This commit is contained in:
parent
7908676063
commit
8a8e299c7b
@ -59,7 +59,7 @@ class Voip extends ServiceType implements ServiceItem
|
||||
*/
|
||||
public function getServiceNameAttribute(): string
|
||||
{
|
||||
return $this->service_number ?: $this->service_address;
|
||||
return $this->service_number ?: ($this->service_address ?: 'Unknown');
|
||||
}
|
||||
|
||||
/* METHODS */
|
||||
|
Loading…
Reference in New Issue
Block a user