We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9204ab7 + 668c9ac commit 06166f6Copy full SHA for 06166f6
app/code/Magento/LoginAsCustomer/view/frontend/web/js/login.js
@@ -4,13 +4,14 @@
4
*/
5
6
define([
7
- 'Magento_Customer/js/customer-data'
8
-], function (customerData) {
+ 'Magento_Customer/js/customer-data',
+ 'Magento_Customer/js/section-config'
9
+], function (customerData, sectionConfig) {
10
11
'use strict';
12
13
return function (config) {
- customerData.reload('customer').done(function () {
14
+ customerData.reload(sectionConfig.getSectionNames()).done(function () {
15
window.location.href = config.redirectUrl;
16
});
17
};
0 commit comments