Fixed payment_method component console issue..
This commit is contained in:
parent
bd66c98954
commit
9802164a8c
@ -50,7 +50,7 @@ class PaymentMethod extends Component
|
||||
|
||||
// check here protal or admin panel..
|
||||
if (empty($type)) {
|
||||
$type = Str::contains(request()->route()->getName(), 'portal') ? 'customer' : 'all';
|
||||
$type = Str::contains(request()?->route()?->getName(), 'portal') ? 'customer' : 'all';
|
||||
}
|
||||
|
||||
$payment_methods = Modules::getPaymentMethods($type);
|
||||
|
Loading…
x
Reference in New Issue
Block a user