File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -176,9 +176,7 @@ export default {
176176 specialPrice = window .sumPrices (specialPrice, this .priceAddition (specialPrice))
177177
178178 this .price = price
179- this .specialPrice = price > specialPrice
180- ? specialPrice
181- : null
179+ this .specialPrice = price > specialPrice ? specialPrice : null
182180 },
183181
184182 getOptions : function (superAttributeCode ) {
Original file line number Diff line number Diff line change @@ -22,13 +22,9 @@ window.productPrice = function (product) {
2222
2323window . productSpecialPrice = function ( product ) {
2424 let groupId = user ?. value ?. group_id
25- let specialPrice = groupId
26- ? product . prices [ groupId ] . min_price
27- : product . special_price
25+ let specialPrice = groupId ? product . prices [ groupId ] . min_price : product . special_price
2826
29- return window . productPrice ( product ) > specialPrice
30- ? specialPrice
31- : null
27+ return window . productPrice ( product ) > specialPrice ? specialPrice : null
3228}
3329
3430window . sumPrices = function ( price1 , price2 ) {
You can’t perform that action at this time.
0 commit comments