diff options
author | LASER-Yi <[email protected]> | 2022-09-22 19:46:03 +0800 |
---|---|---|
committer | LASER-Yi <[email protected]> | 2022-09-22 19:46:03 +0800 |
commit | 4826cb84875a3aadeaae1e01eac0baef3dc16fad (patch) | |
tree | a5a7a35f4c033bfcdc4a5f42769c07b84c7c6f52 | |
parent | a338de147e8a4d74ca266b1306997fcfc90b8941 (diff) | |
download | bazarr-4826cb84875a3aadeaae1e01eac0baef3dc16fad.tar.gz bazarr-4826cb84875a3aadeaae1e01eac0baef3dc16fad.zip |
Fix validation issues of the language profile editor
-rw-r--r-- | frontend/src/components/forms/ProfileEditForm.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/components/forms/ProfileEditForm.tsx b/frontend/src/components/forms/ProfileEditForm.tsx index c9503c11a..19ae1cd3f 100644 --- a/frontend/src/components/forms/ProfileEditForm.tsx +++ b/frontend/src/components/forms/ProfileEditForm.tsx @@ -49,7 +49,7 @@ const ProfileEditForm: FunctionComponent<Props> = ({ const form = useForm({ initialValues: profile, validate: { - name: (value) => value.length > 0, + name: (value) => (value.length > 0 ? null : "Must have a name"), items: (value) => value.length > 0 ? null : "Must contain at lease 1 language", }, |