File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/code/Magento/Catalog/view/base/web/js Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -97,11 +97,11 @@ define([
97
97
'amount' : 0 ,
98
98
'adjustments' : { }
99
99
} ;
100
- additionalPrice [ priceCode ] . amount = parseInt ( additionalPrice [ priceCode ] . amount || 0 , 10 )
100
+ additionalPrice [ priceCode ] . amount = 0 + ( additionalPrice [ priceCode ] . amount || 0 )
101
101
+ priceValue . amount ;
102
102
_ . each ( priceValue . adjustments , function ( adValue , adCode ) {
103
- additionalPrice [ priceCode ] . adjustments [ adCode ] =
104
- parseInt ( additionalPrice [ priceCode ] . adjustments [ adCode ] || 0 , 10 ) + adValue ;
103
+ additionalPrice [ priceCode ] . adjustments [ adCode ] = 0
104
+ + ( additionalPrice [ priceCode ] . adjustments [ adCode ] || 0 ) + adValue ;
105
105
} ) ;
106
106
} ) ;
107
107
} ) ;
@@ -117,9 +117,9 @@ define([
117
117
origin . adjustments = origin . adjustments || { } ;
118
118
final . adjustments = final . adjustments || { } ;
119
119
120
- final . amount = parseInt ( origin . amount , 10 ) + option . amount ;
120
+ final . amount = 0 + origin . amount + option . amount ;
121
121
_ . each ( option . adjustments , function ( pa , paCode ) {
122
- final . adjustments [ paCode ] = parseInt ( origin . adjustments [ paCode ] || 0 , 10 ) + pa ;
122
+ final . adjustments [ paCode ] = 0 + ( origin . adjustments [ paCode ] || 0 ) + pa ;
123
123
} ) ;
124
124
} , this ) ;
125
125
}
You can’t perform that action at this time.
0 commit comments