Skip to content

Commit 5befa84

Browse files
Andrii Beziazychnyiandrewbess
authored andcommitted
#13765 "cart" section data gets loaded 3 times on cart page (2.2.2):
- Blank line after variable declarations was added; - Blank line before "if" was added.
1 parent c442f76 commit 5befa84

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/totals.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ define([
2323
cartData.subscribe(function () {
2424
var quoteSubtotal = parseFloat(quote.totals().subtotal),
2525
subtotalAmount = parseFloat(cartData().subtotalAmount);
26+
2627
if (quoteSubtotal !== subtotalAmount) {
2728
customerData.reload(['cart'], false);
2829
}

app/code/Magento/Checkout/view/frontend/web/js/view/minicart.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ define([
9494
this.isLoading(addToCartCalls > 0);
9595
sidebarInitialized = false;
9696
this.update(updatedCart);
97+
9798
if (cartData()['website_id'] !== window.checkout.websiteId) {
9899
customerData.reload(['cart'], false);
99100
}

0 commit comments

Comments
 (0)