File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed
app/code/Magento/Checkout/view/frontend/web/js/model Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -11,17 +11,21 @@ define([
11
11
] , function ( ko , _ ) {
12
12
'use strict' ;
13
13
14
+ /**
15
+ * Get totals data from the extension attributes.
16
+ * @param {* } data
17
+ * @returns {* }
18
+ */
14
19
var proceedTotalsData = function ( data ) {
15
- if ( _ . isObject ( data ) && _ . isObject ( data [ 'extension_attributes' ] ) ) {
16
- _ . each ( data [ 'extension_attributes' ] , function ( element , index ) {
17
- data [ index ] = element ;
18
- } ) ;
19
- }
20
+ if ( _ . isObject ( data ) && _ . isObject ( data [ 'extension_attributes' ] ) ) {
21
+ _ . each ( data [ 'extension_attributes' ] , function ( element , index ) {
22
+ data [ index ] = element ;
23
+ } ) ;
24
+ }
20
25
21
- return data ;
22
- } ;
23
-
24
- var billingAddress = ko . observable ( null ) ,
26
+ return data ;
27
+ } ,
28
+ billingAddress = ko . observable ( null ) ,
25
29
shippingAddress = ko . observable ( null ) ,
26
30
shippingMethod = ko . observable ( null ) ,
27
31
paymentMethod = ko . observable ( null ) ,
You can’t perform that action at this time.
0 commit comments