diff --git a/app/Http/Livewire/RequiredClientInfo.php b/app/Http/Livewire/RequiredClientInfo.php index c325704ec5..c68b1ef354 100644 --- a/app/Http/Livewire/RequiredClientInfo.php +++ b/app/Http/Livewire/RequiredClientInfo.php @@ -139,7 +139,9 @@ class RequiredClientInfo extends Component public function render() { - $this->checkFields(); + count($this->fields) > 0 + ? $this->checkFields() + : $this->show_form = false; return render('components.livewire.required-client-info'); }