diff --git a/app/Classes/Modules/ServiceTypes/Services/FetchesServiceConfigurations.php b/app/Classes/Modules/ServiceTypes/Services/FetchesServiceConfigurations.php index ae418ebf..d641d641 100644 --- a/app/Classes/Modules/ServiceTypes/Services/FetchesServiceConfigurations.php +++ b/app/Classes/Modules/ServiceTypes/Services/FetchesServiceConfigurations.php @@ -35,8 +35,8 @@ class FetchesServiceConfigurations return array_merge([ 'active' => (int) $constant->detail->is_active ?? false, 'billable' => (int) $constant->detail->is_billable ?? false, - 'bank_id' => $constant->detail->bank_id ?? '', - 'bank_info' => $constant->detail->bank_id ? $this->fetchesServiceBankConfigurations->execute($constant) : '', + 'bank_id' => property_exists($constant->detail, 'bank_id') ? $constant->detail->bank_id : '', + 'bank_info' => property_exists($constant->detail, 'bank_id') ? $this->fetchesServiceBankConfigurations->execute($constant) : '', 'currencies' => $this->fetchesServiceCurrenciesConfigurations->execute($constant) ], $this->addConfigurations($constant)->toArray());