From fa77cef96f5bbb49afad287fc85215bedc864ce7 Mon Sep 17 00:00:00 2001 From: Arseniy Movshev Date: Fri, 2 Jun 2023 16:16:08 +0100 Subject: Fix syntax on valuesar.count to make graph show intermediate values correctly --- src/main.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3-70-g09d2