fix(analytics): show highest elevation gain in meters
Signed-off-by: Marcus Fihlon <marcus@fihlon.swiss>
This commit is contained in:
parent
c84377b05a
commit
4df5af63e0
2 changed files with 9 additions and 0 deletions
|
|
@ -317,6 +317,9 @@
|
|||
}
|
||||
return `${minutes}:${seconds.toString().padStart(2, '0')}`;
|
||||
} else if (unit === 'meters') {
|
||||
if (type === 'HIGHEST_ELEVATION_GAIN') {
|
||||
return `${Math.round(value)} m`;
|
||||
}
|
||||
return `${(value / 1000).toFixed(2)} km`;
|
||||
} else if (unit === 'mps') {
|
||||
return `${(value * 3.6).toFixed(2)} km/h`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue