Prettified

This commit is contained in:
Leah Schumann 2023-12-07 06:44:40 -05:00
parent 2ea2176865
commit 669ea2927c
2 changed files with 11 additions and 6 deletions

View file

@ -384,12 +384,17 @@ export default {
// and replace them with those that come back from revalidation. // and replace them with those that come back from revalidation.
const revalidateResponseHasFrontWiperLineItems = const revalidateResponseHasFrontWiperLineItems =
revalidatePromoResponse.promoLineItems.find( revalidatePromoResponse.promoLineItems.find(
lineItem => lineItem.partType == partTypeStrings.FRONT_WIPER).length > 0; (lineItem) => lineItem.partType == partTypeStrings.FRONT_WIPER
).length > 0;
if (revalidateResponseHasFrontWiperLineItems) { if (revalidateResponseHasFrontWiperLineItems) {
const frontWiperLineItemsInStore = this.lineItems.vaps.find(lineItem => lineItem.partType == partTypeStrings.FRONT_WIPER); const frontWiperLineItemsInStore = this.lineItems.vaps.find(
(lineItem) => lineItem.partType == partTypeStrings.FRONT_WIPER
);
if (frontWiperLineItemsInStore.length > 0) { if (frontWiperLineItemsInStore.length > 0) {
this.lineItems.vaps = this.lineItems.vaps.find(lineItem => lineItem.partType != partTypeStrings.FRONT_WIPER); this.lineItems.vaps = this.lineItems.vaps.find(
(lineItem) => lineItem.partType != partTypeStrings.FRONT_WIPER
);
} }
} }