From 3e36f335b4ded95f41e6b6157a1633ddd7fac1de Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 11 Jan 2022 19:42:00 +1100 Subject: [PATCH] Fixes for required fields --- app/Http/Livewire/RequiredClientInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Livewire/RequiredClientInfo.php b/app/Http/Livewire/RequiredClientInfo.php index 3431cbd0ed3c..fc500ea87758 100644 --- a/app/Http/Livewire/RequiredClientInfo.php +++ b/app/Http/Livewire/RequiredClientInfo.php @@ -150,7 +150,7 @@ class RequiredClientInfo extends Component } if (Str::startsWith($field['name'], 'contact_')) { - if (empty($this->contact->client->{$_field}) || is_null($this->contact->client->{$_field})) { + if (empty($this->contact->{$_field}) || is_null($this->contact->{$_field})) { // if ((empty($this->contact->{$_field}) || is_null($this->contact->{$_field})) || $this->contact->client->{$_field} == 840) { $this->show_form = true; } else {