Fix broadband plan change update

This commit is contained in:
2023-05-03 18:09:29 +10:00
parent fd110f5c6f
commit 4f19da5987
7 changed files with 67 additions and 26 deletions

View File

@@ -184,11 +184,11 @@ class Product extends Model implements IDs
/**
* Return the type of service is provided. eg: Broadband, Phone.
*
* @return string
* @return string|null
*/
public function getCategoryAttribute(): string
public function getCategoryAttribute(): ?string
{
return $this->supplied->getCategoryAttribute();
return $this->supplied ? $this->supplied->getCategoryAttribute() : NULL;
}
/**