Commit 5c8ad6d3 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

Properly check the length of a js strign

parent fcd1c4a5
......@@ -34,7 +34,7 @@ Kirigami.OverlaySheet
TextArea {
id: reviewInput
readonly property bool acceptableInput: inputIssue.count === 0
readonly property bool acceptableInput: inputIssue.length === 0
readonly property string inputIssue: length < 15 ? i18n("Comment too short") :
length > 3000 ? i18n("Comment too long") : ""
Layout.fillWidth: true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment