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

@ -39,3 +39,4 @@
Speed improvements (put temporary functions in RAM where possible)
0.34: Fix readFullDatabase (was skipping first month of data)
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() {
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({
"": { title:/*LANG*/"Distance" },
/*LANG*/"< Back": () => menuStepCount(),

View File

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