bx-1146-more_calc #44

Merged
ksenia_mikhailova merged 2 commits from bx-1146-more_calc into dev 2024-07-25 10:10:31 +03:00
1 changed files with 4 additions and 4 deletions
Showing only changes of commit db5a9398e5 - Show all commits

View File

@ -66,8 +66,8 @@ const changeParametres = () => {
const key_p = key as keyof typeof parametric
const key_s = key as keyof typeof form_state
if (parametric[key_p].max) {
if (form_state[key_s] > parametric[key_p].max) {
form_state[key_s] = parametric[key_p].max
if ((form_state[key_s] as number) > parametric[key_p].max) {
(form_state[key_s] as number) = parametric[key_p].max
}
}
}
@ -104,7 +104,7 @@ const changeParametres = () => {
}
if (((full_sections * length) + (full_sections * fence_length) + fence_length) < total_length_mm) {
form_state.extra_section = Math.floor((total_length_mm - fence_length) % length)
form_state.extra_section = total_length_mm - ((full_sections * length) + (full_sections * fence_length) + fence_length + fence_length)
} else {
form_state.extra_section = 0
}
@ -140,7 +140,7 @@ const toggleModal = () => {
const goal = (target: string, params: object) => {
const nuxtApp = useNuxtApp()
if (nuxtApp.$metrika) {
nuxtApp.$metrika.reachGoal(target, params || {})
(nuxtApp.$metrika as any).reachGoal(target, params || {})
}
}
</script>