INSR-9835: Only offer wipers on payment-method if available
This commit is contained in:
parent
53ded9b2d3
commit
b1b1bdfad3
1 changed files with 3 additions and 1 deletions
|
|
@ -303,7 +303,9 @@ export default {
|
|||
return MaskaFormattedMasks.PHONE_NUMBER;
|
||||
},
|
||||
offerWipers() {
|
||||
return !this.mainStore.lineItems.vaps?.some((part) => part.partType.toLowerCase().includes('wiper'));
|
||||
const orderHasWipers = this.mainStore.lineItems.vaps?.some((part) => part.partType.toLowerCase().includes('wiper'));
|
||||
const wipersAvailable = this.mainStore.availableVaps?.some((part) => part.partType.toLowerCase().includes('wiper'));
|
||||
return !orderHasWipers && wipersAvailable;
|
||||
},
|
||||
wiperOfferPanel() {
|
||||
const wiperImage = this.getCmsContent(this.widget.wiperOffer, widgetFields.CONTENT_GROUP_WIDGET.IMAGE);
|
||||
|
|
|
|||
Loading…
Reference in a new issue