mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-25 22:19:28 -04:00
(pl)(census) fix age not validating correctly
This commit is contained in:
parent
e517ceac78
commit
92cfb1994c
@ -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') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user