INSR-9835: Get availableVaps from the right place

This commit is contained in:
Alex Humphries 2026-06-11 11:33:45 -04:00
parent b1b1bdfad3
commit 6fe9213486

View file

@ -304,7 +304,7 @@ export default {
},
offerWipers() {
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'));
const wipersAvailable = this.mainStore.order.availableVaps?.some((part) => part.partType.toLowerCase().includes('wiper'));
return !orderHasWipers && wipersAvailable;
},
wiperOfferPanel() {