A couple, not all, code review changes

This commit is contained in:
Leah Schumann 2023-10-25 14:57:19 -04:00
parent 18cc04b2ef
commit f64b6ad31c
3 changed files with 6 additions and 13 deletions

View file

@ -79,7 +79,7 @@ import { getHighestFullySatisfiedTier, getPackageContents } from "@/helpers/serv
import textLink from "@/ux-components/text-link/text-link"; import textLink from "@/ux-components/text-link/text-link";
import textBlock from "@/digital-components/text-block/text-block"; import textBlock from "@/digital-components/text-block/text-block";
import { LineItemUtilities } from "@/store"; import { LineItemUtilities } from "@/store";
import { deepClone } from "@/helpers/object-helper";
export default { export default {
name: "cart", name: "cart",

View file

@ -156,13 +156,6 @@ export default {
return answers; return answers;
}, },
}, },
watch: {
modelValue: {
handler(newValue) {
console.log(newValue);
},
},
},
components: { components: {
buttonQuestion, buttonQuestion,
contentGroupModal, contentGroupModal,

View file

@ -148,7 +148,7 @@ export default {
...glassParts, ...glassParts,
]; ];
const lineItems = store.getters.order.lineItems; const lineItemsFromStore = store.getters.order.lineItems;
await baseMixin.methods.dispatchStoreActionWithLogging( await baseMixin.methods.dispatchStoreActionWithLogging(
storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA, storeActions.PRICE_ORDER_ITEMS_AND_SAVE_SERVER_DATA,
@ -176,21 +176,21 @@ export default {
const lineItemUtilities = new LineItemUtilities(); const lineItemUtilities = new LineItemUtilities();
lineItemUtilities.addGuidToLineItemsIfNotAlreadyThere(availableLineItems); lineItemUtilities.addGuidToLineItemsIfNotAlreadyThere(availableLineItems);
const cartLineItems = mapTaxedAvailableLineItemsToStoreFormat( const lineItems = mapTaxedAvailableLineItemsToStoreFormat(
availableLineItems, availableLineItems,
lineItems lineItemsFromStore
); );
// Call the "next" function to complete the transition to this page. // Call the "next" function to complete the transition to this page.
next((vm) => { next((vm) => {
vm.setCmsContent(resultMap.cmsContent); vm.setCmsContent(resultMap.cmsContent);
vm.availableLineItems = taxedAvailableLineItems; vm.availableLineItems = taxedAvailableLineItems;
vm.cartLineItems = cartLineItems; vm.lineItems = lineItems;
}); });
}, },
data() { data() {
return { return {
cartLineItems: [], lineItems: [],
availableLineItems: [], availableLineItems: [],
paymentMethodInternalModel: this.getPaymentMethodFromStore(), paymentMethodInternalModel: this.getPaymentMethodFromStore(),
}; };