Skip to content

Commit

Permalink
Update Order.php (#813)
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonyThorpe authored Dec 15, 2023
1 parent 159ac42 commit 256121d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ protected function getAddress($type)
$address = $this->getComponent($type . 'Address');

if (!$address || !$address->exists() && $this->Member()) {
$address = $this->Member()->{"Default${type}Address"}();
$address = $this->Member()->{"Default{$type}Address"}();
}

if (empty($address->Surname) && empty($address->FirstName)) {
Expand Down

0 comments on commit 256121d

Please sign in to comment.