diff --git a/views/src/components/sub-components/AppComments.vue b/views/src/components/sub-components/AppComments.vue index 32f2275..3f757b2 100644 --- a/views/src/components/sub-components/AppComments.vue +++ b/views/src/components/sub-components/AppComments.vue @@ -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;