Skip to content

Commit 46bf690

Browse files
committed
health 0.36: Fix Distance graphs that used '1*' to remove the suffix
1 parent 3aa372b commit 46bf690

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/health/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,5 @@
3838
0.33: Ensure readAllRecordsSince always includes the current day
3939
Speed improvements (put temporary functions in RAM where possible)
4040
0.34: Fix readFullDatabase (was skipping first month of data)
41-
0.35: Update boot/lib.min.js
41+
0.35: Update boot/lib.min.js
42+
0.36: Fix Distance graphs that used '1*' to remove the suffix

apps/health/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function menuStepCount() {
3232
}
3333

3434
function menuDistance() {
35-
const distMult = 1*require("locale").distance(myprofile.strideLength, 2); // hackish: this removes the distance suffix, e.g. 'm'
35+
const distMult = parseFloat(require("locale").distance(myprofile.strideLength, 2)); // this removes the distance suffix, e.g. 'm'
3636
E.showMenu({
3737
"": { title:/*LANG*/"Distance" },
3838
/*LANG*/"< Back": () => menuStepCount(),

apps/health/metadata.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"id": "health",
33
"name": "Health Tracking",
44
"shortName": "Health",
5-
"version": "0.35",
5+
"version": "0.36",
66
"description": "Logs health data and provides an app to view it",
77
"icon": "app.png",
88
"screenshots" : [ { "url":"screenshot.png" } ],

0 commit comments

Comments
 (0)