Prettified
This commit is contained in:
parent
2ea2176865
commit
669ea2927c
2 changed files with 11 additions and 6 deletions
|
|
@ -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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue