Skip to content

Commit e166ce0

Browse files
committed
MC-18719: private cookie version increments each post request
1 parent e70273a commit e166ce0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ define([
103103
});
104104

105105
if (
106-
(cartData().website_id !== window.checkout.websiteId && cartData().website_id !== undefined) ||
107-
(cartData().storeId !== window.checkout.storeId && cartData().storeId !== undefined)
106+
cartData().website_id !== window.checkout.websiteId && cartData().website_id !== undefined ||
107+
cartData().storeId !== window.checkout.storeId && cartData().storeId !== undefined
108108
) {
109109
customerData.reload(['cart'], false);
110110
}

app/code/Magento/Customer/view/frontend/templates/js/section-config.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
$block->getUrl(null, ['_secure' => true]),
1717
$block->getUrl(null, ['_secure' => false]),
1818
])) ?>,
19-
"sectionNames": <?= $this->helper(\Magento\Framework\Json\Helper\Data::class)->jsonEncode($block->getData('sectionNamesProvider')->getSectionNames()) ?>
19+
"sectionNames": <?= /* @noEscape */ $this->helper(\Magento\Framework\Json\Helper\Data::class)
20+
->jsonEncode($block->getData('sectionNamesProvider')->getSectionNames()) ?>
2021
}
2122
}
2223
}

0 commit comments

Comments
 (0)