diff --git a/components/calc/values.vue b/components/calc/values.vue index 2016434..e7910f3 100644 --- a/components/calc/values.vue +++ b/components/calc/values.vue @@ -109,7 +109,10 @@ const changeParametres = () => { } const calc_full_section = () => (full_sections * length) + (full_sections * fence_length) + fence_length let total_length_calc = calc_full_section() - if (Math.round(total_length_mm - total_length_calc) > 0 && Math.round(total_length_mm - total_length_calc) <= fence_length) { + if ( + Math.round(total_length_mm - total_length_calc) > 0 + && Math.round(total_length_mm - total_length_calc) <= fence_length + ) { full_sections -= 1 total_length_calc = calc_full_section() } @@ -183,7 +186,6 @@ const calc_table = computed(() => {