From 2be4b378c136af2874297d20a162260e49df9f08 Mon Sep 17 00:00:00 2001 From: Adam Caouette Date: Fri, 20 Oct 2023 10:38:13 -0400 Subject: [PATCH] CSR-1384: remove outdated code --- .../add-vaps-modal-buttons.vue | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/src/layouts/payment-method/add-vaps-modal-buttons/add-vaps-modal-buttons.vue b/src/layouts/payment-method/add-vaps-modal-buttons/add-vaps-modal-buttons.vue index a01d2d39f..3fc426d63 100644 --- a/src/layouts/payment-method/add-vaps-modal-buttons/add-vaps-modal-buttons.vue +++ b/src/layouts/payment-method/add-vaps-modal-buttons/add-vaps-modal-buttons.vue @@ -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