Skip to content

Commit 530f5ea

Browse files
authored
ENGCOM-5998: Change array to object #24848
2 parents 61b9647 + 4dcbf78 commit 530f5ea

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/code/Magento/Checkout/view/frontend/web/js/model/cart/estimate-service.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ define([
1313
], function (quote, defaultProcessor, totalsDefaultProvider, shippingService, cartCache, customerData) {
1414
'use strict';
1515

16-
var rateProcessors = [],
17-
totalsProcessors = [],
16+
var rateProcessors = {},
17+
totalsProcessors = {},
1818

1919
/**
2020
* Estimate totals for shipping address and update shipping rates.

app/code/Magento/Checkout/view/frontend/web/js/model/shipping-rate-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ define([
1010
], function (quote, defaultProcessor, customerAddressProcessor) {
1111
'use strict';
1212

13-
var processors = [];
13+
var processors = {};
1414

1515
processors.default = defaultProcessor;
1616
processors['customer-address'] = customerAddressProcessor;

app/code/Magento/Checkout/view/frontend/web/js/model/shipping-save-processor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ define([
1111
], function (defaultProcessor) {
1212
'use strict';
1313

14-
var processors = [];
14+
var processors = {};
1515

1616
processors['default'] = defaultProcessor;
1717

0 commit comments

Comments
 (0)