feat: birthSurname not required field

This commit is contained in:
Sebastian Pravda 2023-02-04 16:10:09 +01:00
parent 74bade7450
commit ce94ec9eea
No known key found for this signature in database
GPG key ID: F3BC84F08EFA3F57

View file

@ -121,7 +121,7 @@
.string()
.required()
.matches(/^([0-3]?[0-9])\.(0?[1-9]|1[0-2])\.[0-9]{4}$/),
birthSurname: yup.string().required(),
birthSurname: yup.string(),
sex: yup.string(),
address: yup.string(),
street: yup.string().required(),
@ -539,7 +539,7 @@
<TextField
error={$typedErrors['candidate']['birthSurname']}
bind:value={$form.candidate.birthSurname}
placeholder={$LL.input.birthSurname()}
placeholder={`${$LL.input.birthSurname()} (${$LL.input.optional()})`}
/>
</span>
</div>