mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-12-03 10:04:29 +00:00
elevation profile reactive to unit changes
This commit is contained in:
1 parent
78b7612171
commit
c9bf4bc401
2 files changed
+42
-22
No files matched your search
@@ -49,9 +49,9 @@ export function getVelocityWithUnits(value: number, convert: boolean = true) {
|
||||
}
|
||||
} else {
|
||||
if (convert) {
|
||||
return secondsToHHMMSS(getConvertedVelocity(value));
|
||||
return secondsToHHMMSS(getConvertedVelocity(value)) + ' ' + getVelocityUnits();
|
||||
} else {
|
||||
return secondsToHHMMSS(value);
|
||||
return secondsToHHMMSS(value) + ' ' + getVelocityUnits();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user