Skip to content

Commit

Permalink
fix: only set country if currentCountry has value (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
wthijmen authored Dec 1, 2023
1 parent 5222a77 commit e86d3fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Model/Sales/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ public function getCurrentCountry(): string
*/
public function setCurrentCountry(?string $currentCountry): void
{
if ($currentCountry === null) {
return;
}

$this->currentCountry = $currentCountry;
}
}

0 comments on commit e86d3fe

Please sign in to comment.