CSR-1384: remove outdated code

This commit is contained in:
Adam Caouette 2023-10-20 10:38:13 -04:00
parent 820a4387ac
commit 2be4b378c1

View file

@ -73,21 +73,8 @@ export default {
},
},
computed: {
currentCartItems: {
get: function () {
return this.modelValue;
},
set: function (newValue) {
// does this.modelValue.vaps have this vap in it already?
const inCart = this.currentCartItems.vaps?.some((vap) => {
return vap.partType === "RAIN DEFENSE";
});
const newCartItems = this.currentCartItems;
if (!inCart) {
newCartItems.vaps.push(newValue);
}
this.$emit("update:modelValue", newCartItems);
},
currentCartItems() {
return this.modelValue;
},
showAddRainDefense() {
// show if not in cart