From 3764389e0465bab40a114218ff137e48af73fbe6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Mon, 10 May 2021 13:01:40 +0200 Subject: [PATCH] Pass 'client_postal_code' when emitting 'passed-required-field-check' --- app/Http/Livewire/RequiredClientInfo.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/RequiredClientInfo.php b/app/Http/Livewire/RequiredClientInfo.php index b0296b0b9da1..2b51cacbb841 100644 --- a/app/Http/Livewire/RequiredClientInfo.php +++ b/app/Http/Livewire/RequiredClientInfo.php @@ -88,7 +88,9 @@ class RequiredClientInfo extends Component } if ($this->updateClientDetails($data)) { - $this->emit('passed-required-fields-check'); + $this->emit('passed-required-fields-check', [ + 'client_postal_code' => $this->contact->client->postal_code, + ]); return true; }