Client - fix elevation display in chart tooltip

This commit is contained in:
Sam 2021-09-01 13:54:59 +02:00
parent d0b305ec6f
commit 06510bb205

View File

@ -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