Skip to content

Commit 06166f6

Browse files
authored
Merge pull request #87 from ihorvansach/17-notification-banner-bug
17 Notification banner on storefront [fixed: The banner is not showing]
2 parents 9204ab7 + 668c9ac commit 06166f6

File tree

1 file changed

+4
-3
lines changed
  • app/code/Magento/LoginAsCustomer/view/frontend/web/js

1 file changed

+4
-3
lines changed

app/code/Magento/LoginAsCustomer/view/frontend/web/js/login.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44
*/
55

66
define([
7-
'Magento_Customer/js/customer-data'
8-
], function (customerData) {
7+
'Magento_Customer/js/customer-data',
8+
'Magento_Customer/js/section-config'
9+
], function (customerData, sectionConfig) {
910

1011
'use strict';
1112

1213
return function (config) {
13-
customerData.reload('customer').done(function () {
14+
customerData.reload(sectionConfig.getSectionNames()).done(function () {
1415
window.location.href = config.redirectUrl;
1516
});
1617
};

0 commit comments

Comments
 (0)