From 405052620f5618dcbe19b2ade658dd032d78e6bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 1 Mar 2024 14:17:19 +0100 Subject: [PATCH] Remove unused code in Methods.php --- app/Livewire/BillingPortal/Payments/Methods.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/app/Livewire/BillingPortal/Payments/Methods.php b/app/Livewire/BillingPortal/Payments/Methods.php index 2143631355d7..d467b0d85aa5 100644 --- a/app/Livewire/BillingPortal/Payments/Methods.php +++ b/app/Livewire/BillingPortal/Payments/Methods.php @@ -12,7 +12,6 @@ namespace App\Livewire\BillingPortal\Payments; -use App\Livewire\BillingPortal\Authentication; use Livewire\Component; use App\Models\Subscription; use Illuminate\Support\Facades\Cache; @@ -27,11 +26,6 @@ class Methods extends Component public function mount(): void { - if (auth()->guard('contact')->guest()) { - $this->dispatch('purchase.forward', component: Authentication::class); - return; - } - $total = collect($this->context['products'])->sum('total_raw'); $methods = auth()->guard('contact')->user()->client->service()->getPaymentMethods(