Skip to content

Commit 4391235

Browse files
author
Prabhu Ram
committed
- minor fix
1 parent 2518eb1 commit 4391235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/Cart/AddProductsToCart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public function execute(string $maskedCartId, array $cartItems): AddProductsToCa
115115
}
116116
}
117117

118-
if (!count($this->errors) === 0) {
118+
if (count($this->errors) !== 0) {
119119
/* Revert changes introduced by add to cart processes in case of an error */
120120
$cart->getItemsCollection()->clear();
121121
}

0 commit comments

Comments
 (0)