Make description of activity optional (#20)
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user