Skip to content

Commit 84ceb30

Browse files
author
Prabhu Ram
committed
- minor fix
1 parent 4c5403d commit 84ceb30

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
@@ -200,7 +200,7 @@ private function addError(string $message, int $cartItemPosition = 0): void
200200
private function getErrorCode(string $message): string
201201
{
202202
foreach (self::MESSAGE_CODES as $codeMessage => $code) {
203-
if (false !== stripos($codeMessage, $message)) {
203+
if (false !== stripos($message, $codeMessage)) {
204204
return $code;
205205
}
206206
}

0 commit comments

Comments
 (0)