Commit 093f9ccf authored by Yannis Barlas's avatar Yannis Barlas

fix(submission form): fix credit validation passing with no value

parent e9bcdccd
......@@ -28,7 +28,7 @@ const initial = {
affiliations: yup.string(),
credit: yup
.array()
.of(yup.string())
.of(yup.string().required('Must choose credit to assign to the author'))
.required('Must choose credit to assign to the author'),
email: yup
.string()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment