From aac43793b5bf9ed272359b584cfcc60bd717970e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 15 Mar 2024 01:31:07 +0100 Subject: [PATCH] Refactor contact variables in RFF mount method --- app/Livewire/BillingPortal/RFF.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Livewire/BillingPortal/RFF.php b/app/Livewire/BillingPortal/RFF.php index c5bdbbf71312..38b36f868108 100644 --- a/app/Livewire/BillingPortal/RFF.php +++ b/app/Livewire/BillingPortal/RFF.php @@ -58,9 +58,9 @@ class RFF extends Component public function mount(): void { - $this->contact_first_name = $this->context['contact']['first_name']; - $this->contact_last_name = $this->context['contact']['last_name']; - $this->contact_email = $this->context['contact']['email']; + $this->contact_first_name = $this->context['contact']['first_name'] ?? ''; + $this->contact_last_name = $this->context['contact']['last_name'] ?? ''; + $this->contact_email = $this->context['contact']['email'] ?? ''; } public function render()