Skip to content

Commit f1a252f

Browse files
committed
MC-5882: Invalid quote in session
1 parent 19a1825 commit f1a252f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/Model/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ public function getQuote()
240240
? $this->_customer->getId()
241241
: $this->_customerSession->getCustomerId();
242242

243-
if ($quote->getData('customer_id') && $quote->getData('customer_id') !== $customerId) {
243+
if ($quote->getData('customer_id') && (int)$quote->getData('customer_id') !== (int)$customerId) {
244244
$quote = $this->quoteFactory->create();
245245
$this->setQuoteId(null);
246246
}

0 commit comments

Comments
 (0)