Skip to content

Commit

Permalink
Fix fallback on addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Destoop committed Oct 11, 2023
1 parent eb51d27 commit 8a47f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Serializer/Handler/TranslatedAddressHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function deserializeStringFromJson(JsonDeserializationVisitor $visitor, $
}

// Some properties are not translated yet in the api. We save these as nl.
if (empty($this->addresses) && !empty($values)) {
if (empty($address) && !empty($values)) {
$address = new Address(
$values['addressCountry'] ?? null,
$values['addressLocality'] ?? null,
Expand Down

0 comments on commit 8a47f1c

Please sign in to comment.