Fix for text rendered for unknown charge types
This commit is contained in:
parent
4ddbb14d09
commit
3cd1f2e34a
@ -92,7 +92,7 @@ class Charge extends Model
|
|||||||
|
|
||||||
public function getTypeNameAttribute(): string
|
public function getTypeNameAttribute(): string
|
||||||
{
|
{
|
||||||
return Arr::get(InvoiceItem::type,$this->type);
|
return Arr::get(InvoiceItem::type,$this->type) ?: 'Unknown';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user