Commit 3a59ea07 authored by Paul Kaplan's avatar Paul Kaplan

Prevent submission of blank curator/project fields

parent 619f4400
...@@ -36,7 +36,7 @@ const StudioCuratorInviter = ({onSubmit}) => { ...@@ -36,7 +36,7 @@ const StudioCuratorInviter = ({onSubmit}) => {
className={classNames('button', { className={classNames('button', {
'mod-mutating': submitting 'mod-mutating': submitting
})} })}
disabled={submitting} disabled={submitting || value === ''}
onClick={submit} onClick={submit}
><FormattedMessage id="studio.inviteCurator" /></button> ><FormattedMessage id="studio.inviteCurator" /></button>
{error && <div>{error}</div>} {error && <div>{error}</div>}
......
...@@ -38,7 +38,7 @@ const StudioProjectAdder = ({onSubmit}) => { ...@@ -38,7 +38,7 @@ const StudioProjectAdder = ({onSubmit}) => {
className={classNames('button', { className={classNames('button', {
'mod-mutating': submitting 'mod-mutating': submitting
})} })}
disabled={submitting} disabled={submitting || value === ''}
onClick={submit} onClick={submit}
><FormattedMessage id="studio.addProject" /></button> ><FormattedMessage id="studio.addProject" /></button>
{error && <div>{error}</div>} {error && <div>{error}</div>}
......
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