Make hours optional

This commit is contained in:
manubo
2019-09-24 11:26:22 +02:00
parent 20861c81d9
commit aaafd955a4

View File

@@ -29,7 +29,7 @@ class Form extends Component {
isValid = () => { isValid = () => {
const { changeset } = this.props const { changeset } = this.props
return ["assignment_id", "task_id", "hours"].map(prop => changeset[prop]).every(Boolean) return ["assignment_id", "task_id"].map(prop => changeset[prop]).every(Boolean)
} }
handleTextareaKeyDown = event => { handleTextareaKeyDown = event => {