Prettified

This commit is contained in:
Leah Schumann 2023-12-28 09:55:36 -05:00
parent 5604ffd1a8
commit 17e08189a8

View file

@ -138,16 +138,17 @@ export default {
const orderHasFrontWipers = frontWipersOnOrder.length > 0; const orderHasFrontWipers = frontWipersOnOrder.length > 0;
const orderHasRearWipers = rearWipersOnOrder.length > 0; const orderHasRearWipers = rearWipersOnOrder.length > 0;
const wipersPromise = (!orderHasFrontWipers || !orderHasRearWipers) const wipersPromise =
? baseMixin.methods.dispatchStoreActionWithLogging( !orderHasFrontWipers || !orderHasRearWipers
storeActions.GET_WIPERS, ? baseMixin.methods.dispatchStoreActionWithLogging(
{ storeActions.GET_WIPERS,
serviceZipCode: store.getters.order.serviceLocation.zipCode, {
carId: store.getters.vehicle.carId, serviceZipCode: store.getters.order.serviceLocation.zipCode,
}, carId: store.getters.vehicle.carId,
"payment-method" },
) "payment-method"
: Promise.resolve([]); )
: Promise.resolve([]);
const rainDefensePromise = baseMixin.methods.dispatchStoreActionWithLogging( const rainDefensePromise = baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.GET_RAIN_DEFENSE, storeActions.GET_RAIN_DEFENSE,
@ -171,7 +172,7 @@ export default {
]; ];
const resultMap = await settleAllPromises(promiseResultMap); const resultMap = await settleAllPromises(promiseResultMap);
console.log(resultMap.wipers) console.log(resultMap.wipers);
const glassParts = lineItemsFromStore.glassParts ?? []; const glassParts = lineItemsFromStore.glassParts ?? [];
const supportingItems = lineItemsFromStore.supportingItems ?? []; const supportingItems = lineItemsFromStore.supportingItems ?? [];
const vaps = lineItemsFromStore.vaps ?? []; const vaps = lineItemsFromStore.vaps ?? [];