From d99886d4018374385223845b6b8de5efdce53a1c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Wed, 25 Sep 2024 12:04:19 +1000 Subject: [PATCH] minor fixes --- app/Livewire/Flow2/ProcessPayment.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Livewire/Flow2/ProcessPayment.php b/app/Livewire/Flow2/ProcessPayment.php index 172614d31bd8..af870e70d489 100644 --- a/app/Livewire/Flow2/ProcessPayment.php +++ b/app/Livewire/Flow2/ProcessPayment.php @@ -93,9 +93,8 @@ class ProcessPayment extends Component $bag->add('gateway_error', $e->getMessage()); session()->flash('errors', $errors->put('default', $bag)); - // $this->redirectRoute('client.invoices.index'); - // $invoice_id = $this->getContext()['payable_invoices'][0]['invoice_id']; - // // $this->redirectRoute('client.invoice.show', ['invoice' => $invoice_id]); + $invoice_id = $this->getContext()['payable_invoices'][0]['invoice_id']; + $this->redirectRoute('client.invoice.show', ['invoice' => $invoice_id]); $stopPropagation(); }