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) =>
|
const formatValue = (displayedData, value) =>
|
||||||
displayedData === 'duration'
|
displayedData === 'duration'
|
||||||
? formatDuration(value, true)
|
? formatDuration(value, true)
|
||||||
: displayedData === 'distance'
|
: ['distance', 'ascent', 'descent'].includes(displayedData)
|
||||||
? value.toFixed(2)
|
? value.toFixed(2)
|
||||||
: value
|
: value
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user