Skip to content

Commit

Permalink
fix: include state code in address for ups
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen committed Oct 9, 2024
1 parent c15a80b commit 0069ac9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Pdk/Base/Adapter/PsAddressAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ private function createFromAddress(Address $address): array
{
$country = new Country($address->id_country);
$state = $country->iso_code === Platform::get('localCountry')
? null
: new State($address->id_state);
? null : new State($address->id_state);

return array_merge([
'cc' => $country->iso_code,
Expand Down

0 comments on commit 0069ac9

Please sign in to comment.