Skip to content

Commit

Permalink
refact : empty states
Browse files Browse the repository at this point in the history
  • Loading branch information
kaioken committed Dec 1, 2021
1 parent dc3c669 commit 5626b52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Leads/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ public function update(Dealer $dealer, User $user) : self
}

if (!empty($this->addresses)) {
foreach ($this->addresses as $key => $single) {
if (empty(trim($single['State']))) {
foreach ($this->addresses as $key => $address) {
if (empty(trim($address['State']))) {
unset($this->addresses[$key]);
}
}
Expand Down

0 comments on commit 5626b52

Please sign in to comment.