Client - fix elevation display in chart tooltip
This commit is contained in:
parent
d0b305ec6f
commit
06510bb205
@ -5,7 +5,7 @@ import { formatDuration } from '../../../utils/stats'
|
||||
const formatValue = (displayedData, value) =>
|
||||
displayedData === 'duration'
|
||||
? formatDuration(value, true)
|
||||
: displayedData === 'distance'
|
||||
: ['distance', 'ascent', 'descent'].includes(displayedData)
|
||||
? value.toFixed(2)
|
||||
: value
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user