Fixed payment_method component console issue..

This commit is contained in:
Cüneyt Şentürk 2023-04-27 16:30:16 +03:00
parent bd66c98954
commit 9802164a8c

View File

@ -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);