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)} шт`,