Skip to content

Commit 8a4822c

Browse files
committed
AC-16096: [Cart] Shopping cart page is not loading when Fixed product Tax is enable
Fix esLint error in app/code/Magento/Checkout/view/frontend/web/js/cart/ensure-subtotal-sync.js
1 parent 06ea950 commit 8a4822c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

app/code/Magento/Checkout/view/frontend/web/js/cart/ensure-subtotal-sync.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,19 +86,20 @@ define([
8686
url: window.location.href,
8787
type: 'GET',
8888
data: { ajax: 1 },
89-
success: function(response) {
89+
success: function (response) {
9090
// Extract and replace cart form
9191
const newContent = $(response).find('#form-validate');
92-
$('#form-validate').replaceWith(newContent);
9392

93+
// Replace the form with the new content
94+
$('#form-validate').replaceWith(newContent);
9495
// Reinitialize widgets on new content
9596
$('#form-validate').trigger('contentUpdated');
9697
},
97-
error: function() {
98+
error: function () {
9899
$('body').trigger('processStop');
99100
$('body').data('cart-synced', false);
100101
},
101-
complete: function() {
102+
complete: function () {
102103
$('body').trigger('processStop');
103104
}
104105
});

0 commit comments

Comments
 (0)