Skip to content

Commit 64bd992

Browse files
committed
MC-42813: Feature request: Cart qty update should be reverted back if the requested qty is not available
1 parent 6df7d82 commit 64bd992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Checkout/view/frontend/web/js/action/update-shopping-cart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ define([
115115
$.each(responseData, function (index, data) {
116116

117117
if (data.itemId !== undefined) {
118-
let elm = $('#cart-' + data.itemId + '-qty');
118+
var elm = $('#cart-' + data.itemId + '-qty');
119119
elm.val(elm.attr('data-item-qty'));
120120
}
121121
response['error_message'] = data.error;

0 commit comments

Comments
 (0)