aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.qml b/src/main.qml
index e2e4876..f428db6 100644
--- a/src/main.qml
+++ b/src/main.qml
@@ -89,7 +89,7 @@ Application {
currDate.setDate(currDate.getDate() + 1)
console.log(currDate)
var currvalue = stepsDataLoader.getDataForDate(currDate)
- if (currvalue > 0 || valuesArr.count>0) {
+ if (currvalue > 0 || valuesArr.length > 0) {
if (currvalue > maxValue) {
maxValue = currvalue
}