From 986fc64998816ce0711462066b178acb8b0c5855 Mon Sep 17 00:00:00 2001 From: Manuel Bouza Date: Wed, 26 Jun 2019 09:36:27 +0200 Subject: [PATCH] Make description of activity optional (#20) --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/js/components/Form.js | 4 +--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b46175c..a9f6073 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add support for starting/stopping a timer - Show hours as HH:MM or decimal in the Bubble, depending on setting in MOCO +## [1.2.3] - 2019-06-26 + +### Changed + +- Description of activities are optional + ## [1.2.2] - 2019-05-24 ### Removed diff --git a/package.json b/package.json index 4e30a05..9a13a47 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "moco-browser-extensions", "description": "Browser plugin for MOCO", - "version": "1.2.2", + "version": "1.2.3", "license": "MIT", "scripts": { "start": "yarn start:chrome", diff --git a/src/js/components/Form.js b/src/js/components/Form.js index ff79b49..27365a5 100644 --- a/src/js/components/Form.js +++ b/src/js/components/Form.js @@ -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 => {