diff --git a/packages/xpub-faraday/app/config/journal/wizard-validators.js b/packages/xpub-faraday/app/config/journal/wizard-validators.js index 8504e61f02765ae8e83a9f2f43063801258e2d10..bec3371d1699e67c3ef81688f26205bee7328b46 100644 --- a/packages/xpub-faraday/app/config/journal/wizard-validators.js +++ b/packages/xpub-faraday/app/config/journal/wizard-validators.js @@ -30,9 +30,9 @@ export const editModeEnabled = value => { return undefined } -export const requiredFiles = (valus, formValues) => { +export const requiredFiles = (values, formValues) => { const manuscripts = get(formValues, 'files.manuscripts') - if (manuscripts && manuscripts.length === 0) { + if (!manuscripts || manuscripts.length === 0) { return 'At least one main manuscript file is needed.' } return undefined