From b1b1bdfad37ea55aa3179b60dac24b5a9e8f667c Mon Sep 17 00:00:00 2001 From: Alex Humphries Date: Thu, 11 Jun 2026 11:26:45 -0400 Subject: [PATCH] INSR-9835: Only offer wipers on payment-method if available --- src/layouts/payment-method/payment-method.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/layouts/payment-method/payment-method.vue b/src/layouts/payment-method/payment-method.vue index 31b09b27..792592a9 100644 --- a/src/layouts/payment-method/payment-method.vue +++ b/src/layouts/payment-method/payment-method.vue @@ -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);