diff --git a/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue b/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue index 5ce41d96a..82a7cf67a 100644 --- a/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue +++ b/src/modules/AuditForm/components/questions/options/audit-form-question-options.vue @@ -66,7 +66,7 @@ const emit = defineEmits([ ]); function updateQuestion({ path, value }) { - const score = value.score > 10 ? 10 : Number(Math.abs(value.score)); // for trying to enter -1, 000 or string value + const score = value.score > 10 ? 10 : Number(Math.abs(value.score)); // to prevent -1, 000 or string value emit('change:question', updateObject({ obj: props.question, path, diff --git a/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue b/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue index b734391db..0f302610c 100644 --- a/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue +++ b/src/modules/AuditForm/components/questions/score/audit-form-question-score.vue @@ -111,7 +111,7 @@ const scoreRange = computed(() => { const isResult = computed(() => !isEmpty(props.result)); function updateQuestion({ path, value }) { - const number = value > 10 ? 10 : Number(Math.abs(value)); // for trying to enter -1, 000 or string value + const number = value > 10 ? 10 : Number(Math.abs(value)); // to prevent -1, 000 or string value emit('change:question', updateObject({ obj: props.question, path, value: number })); }