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 e7b463d commit 931247cCopy full SHA for 931247c
app/code/Magento/Customer/view/frontend/web/js/invalidation-rules/website-rule.js
@@ -22,7 +22,9 @@ define([
22
process: function (customerData) {
23
var customer = customerData.get('customer');
24
25
- if (this.scopeConfig && customer() && ~~customer().websiteId !== ~~this.scopeConfig.websiteId) {
+ if (this.scopeConfig && customer() &&
26
+ (~~customer().websiteId !== ~~this.scopeConfig.websiteId) && ~~customer().websiteId !== 0) {
27
+ console.log(~~customer().websiteId, this.scopeConfig.websiteId);
28
customerData.reload(['customer']);
29
}
30
0 commit comments