Refactoring some code out into a new method that was created.

This commit is contained in:
Jeremy-Z 2026-04-21 15:42:39 -04:00
parent 828167813c
commit 8b12758061

View file

@ -471,11 +471,7 @@ export default {
this.isPageLoading = false;
},
async getPricedParts() {
const { glassParts, supportingItems } = this.mainStore.order.lineItems;
const availableLineItems = [
...(glassParts ?? []),
...(supportingItems ?? [])
];
const availableLineItems = getAvailableLineItems(this.mainStore.order);
// We only call the ITAC pricing endpoint if we are not repair or we are NoComp
if (!this.isRepair || this.mainStore.isNoComp) {