Changed the trim of the distance
Changed the trimming (switching between meters and kilometers) of the distance from 10K to 100K, similar to the PM5 and convention of other rowing machines.
This commit is contained in:
parent
78f6275846
commit
d852ef8439
|
|
@ -41,7 +41,7 @@ export function secondsToPace (seconds) {
|
|||
* @param {number} value The distance in meters.
|
||||
*/
|
||||
export function formatDistance (value) {
|
||||
return value >= 10000
|
||||
return value >= 99999.5
|
||||
? { distance: formatNumber((value / 1000), 2), unit: 'km' }
|
||||
: { distance: formatNumber(value), unit: 'm' }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue