Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Nov 13, 2023
1 parent 7e68452 commit ab171ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/Carts.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public function init()
// Also check pre Commerce 4.0 for a cart number in the session just in case.
if ($requestCookies->has($this->cartCookie['name'])) {
$this->_cartNumber = $requestCookies->getValue($this->cartCookie['name']);
if($this->_cart && $this->_cart->number != $this->_cartNumber) {
if ($this->_cart && $this->_cart->number != $this->_cartNumber) {
$this->_cart = null;
}
} elseif (($session->getHasSessionId() || $session->getIsActive()) && $session->has('commerce_cart')) {
Expand Down

0 comments on commit ab171ff

Please sign in to comment.