elevation profile reactive to unit changes

This commit is contained in:
vcoppe
2024-04-24 16:53:33 +02:00
parent 78b7612171
commit c9bf4bc401
2 changed files with 42 additions and 22 deletions

View File

@@ -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();
}
}
}