Skip to content

Commit 6a3915f

Browse files
royduinactions-user
authored andcommitted
Apply fixes from Prettier
1 parent 40ae846 commit 6a3915f

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

resources/js/components/Product/AddToCart.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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) {

resources/js/filters.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,9 @@ window.productPrice = function (product) {
2222

2323
window.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

3430
window.sumPrices = function (price1, price2) {

0 commit comments

Comments
 (0)