From b983e6457a10b179efe9f845cd4093a131323610 Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Thu, 4 Jul 2024 13:51:08 +0300 Subject: [PATCH] modal --- components/modal.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/modal.vue b/components/modal.vue index fa2bb9d..2c521e0 100644 --- a/components/modal.vue +++ b/components/modal.vue @@ -123,7 +123,7 @@ const total_txt = computed(() => { lam_quad_extra: discountValue * lamelles_block * lam_count * lamelle_height.value * extra_m, } // console.log(prices) - const extra = { + const extra = extra_section.value ? { pillar: !remove_pillar.value && { txt: `Дополнительная секция, столб, 1 шт`, value: prices.pillar * 1 @@ -132,8 +132,7 @@ const total_txt = computed(() => { txt: `Блок ламелей с направляющей, 1 шт`, value: prices.lam_quad_extra * 1 }, - - } + } : {} const regular = { pillar: !remove_pillar.value && { txt: `Столб, ${(1 + sections)} шт`, -- 2.40.1