Skip to content

Commit

Permalink
use load relationship
Browse files Browse the repository at this point in the history
  • Loading branch information
wychoong authored Sep 19, 2024
1 parent fc6d877 commit daaa3fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Models/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public function setShippingOption(ShippingOption $option, bool $refresh = true):

public function getShippingOption(): ?ShippingOption
{
return ShippingManifest::getShippingOption($this->refresh());
return ShippingManifest::getShippingOption($this->load('shippingAddress'));
}

public function isShippable(): bool
Expand Down

0 comments on commit daaa3fb

Please sign in to comment.