We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64bd992 commit 7acf1bcCopy full SHA for 7acf1bc
app/code/Magento/Checkout/view/frontend/web/js/action/update-shopping-cart.js
@@ -108,14 +108,15 @@ define([
108
*/
109
onError: function (response) {
110
var that = this,
111
+ elm,
112
responseData = JSON.parse(response['error_message']);
113
114
if (response['error_message']) {
115
try {
116
$.each(responseData, function (index, data) {
117
118
if (data.itemId !== undefined) {
- var elm = $('#cart-' + data.itemId + '-qty');
119
+ elm = $('#cart-' + data.itemId + '-qty');
120
elm.val(elm.attr('data-item-qty'));
121
}
122
response['error_message'] = data.error;
0 commit comments