health 0.36: Fix Distance graphs that used '1*' to remove the suffix

master
Gordon Williams 2025-07-22 14:52:45 +01:00
parent 3aa372bce1
commit 46bf6907a9
3 changed files with 4 additions and 3 deletions

View File

@ -38,4 +38,5 @@
0.33: Ensure readAllRecordsSince always includes the current day 0.33: Ensure readAllRecordsSince always includes the current day
Speed improvements (put temporary functions in RAM where possible) Speed improvements (put temporary functions in RAM where possible)
0.34: Fix readFullDatabase (was skipping first month of data) 0.34: Fix readFullDatabase (was skipping first month of data)
0.35: Update boot/lib.min.js 0.35: Update boot/lib.min.js
0.36: Fix Distance graphs that used '1*' to remove the suffix

View File

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

View File

@ -2,7 +2,7 @@
"id": "health", "id": "health",
"name": "Health Tracking", "name": "Health Tracking",
"shortName": "Health", "shortName": "Health",
"version": "0.35", "version": "0.36",
"description": "Logs health data and provides an app to view it", "description": "Logs health data and provides an app to view it",
"icon": "app.png", "icon": "app.png",
"screenshots" : [ { "url":"screenshot.png" } ], "screenshots" : [ { "url":"screenshot.png" } ],