From 92cfb1994c7e6ea9f4801eb7c77b191e5bbfa145 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Mon, 13 Jan 2025 22:23:34 +0100 Subject: [PATCH] (pl)(census) fix age not validating correctly --- pages/census/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/census/index.vue b/pages/census/index.vue index e29355bd9..adc06a61c 100644 --- a/pages/census/index.vue +++ b/pages/census/index.vue @@ -110,7 +110,7 @@ const stepValid = computed((): boolean => { return Array.isArray(answer) && answer.length > 0; } if (question.value.type === 'number') { - const v = typeof answer === 'string' ? parseInt(answer) : -1; + const v = parseInt(answer as string); return answer !== '' && v >= question.value.min && v <= question.value.max; } if (question.value.type === 'text' || question.value.type === 'textarea') {