diff --git a/components/modal.vue b/components/modal.vue index 81a8c00..8353e2f 100644 --- a/components/modal.vue +++ b/components/modal.vue @@ -189,7 +189,7 @@ const total_txt = computed(() => { if (isTopper) decor.topper = { txt: 'Колпак', value: getTopperName(pillar_topper.value) } } - const total = [extra, regular, decor].map(item => Object.values(item).map(el => el ? el.value : 0)).flat().reduce((a, b) => a + b, 0) + const total = [extra, regular].map(item => Object.values(item).map(el => el ? el.value : 0)).flat().reduce((a, b) => a + b, 0) const res_regular = Object.values(regular).map(item => Object.entries(item).map(el => el[0] == 'value' ? roubleSign.format(el[1] as number) : el[1]).join(': ')