Skip to content

Commit

Permalink
Changed min length of comment constraint from 10 to 1 (cont.) #431
Browse files Browse the repository at this point in the history
  • Loading branch information
idanyadgar committed May 17, 2018
1 parent 7ce7b9b commit aae3d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion views/src/components/sub-components/AppComments.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
return `${Math.floor(time / 86400)} days ago`;
},
addComment() {
if (this.text.length < this.minLength) {
if (!this.text || this.text.length < this.minLength) {
this.errorMessages = ['Your comment is too short'];
return;
Expand Down

0 comments on commit aae3d71

Please sign in to comment.