Refactoring some code out into a new method that was created.
This commit is contained in:
parent
828167813c
commit
8b12758061
1 changed files with 1 additions and 5 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue