Make description of activity optional (#20)

This commit is contained in:
Manuel Bouza committed 2019-06-26 10:13:59 +02:00
1 parent 8b2e21c3cf
commit 986fc64998
3 files changed
+8 -4

No files matched your search

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