Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit a12c031

Browse files
Merge pull request #48 from magento-epam/MAGETWO-66666
MAGETWO-66666: Adding a product to cart from category page with an ex…
2 parents 36aec4b + f8f1a61 commit a12c031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ define([
163163

164164
/** @inheritdoc */
165165
complete: function (res) {
166-
if (res.state() == 'rejected') {
166+
if (res.state() === 'rejected') {
167167
location.reload();
168168
}
169169
}

0 commit comments

Comments
 (0)