Commit a3061542 authored by Yannis Barlas's avatar Yannis Barlas

fix(submission form): fix coauthor error when all fields are empty

parent 9a7aab6d
......@@ -94,6 +94,12 @@ const initial = {
// eslint-disable-next-line func-names, prefer-arrow-callback
function(val) {
if (val && val.length > 0) return true
const { affiliations, credit } = this.parent
if (isStringFieldEmpty(affiliations) && isCreditEmpty(credit)) {
return true
}
return false
},
),
......
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