display only 3 decimals for distance on month statistics - fix #24
This commit is contained in:
parent
a05ccbdd10
commit
35e80de953
@ -101,6 +101,8 @@ class Statistics extends React.Component {
|
|||||||
dataKey={s.label}
|
dataKey={s.label}
|
||||||
formatter={value => displayedData === 'duration'
|
formatter={value => displayedData === 'duration'
|
||||||
? format(formatDuration(value), 'HH:mm')
|
? format(formatDuration(value), 'HH:mm')
|
||||||
|
: displayedData === 'distance'
|
||||||
|
? value.toFixed(3)
|
||||||
: value
|
: value
|
||||||
}
|
}
|
||||||
stackId="a"
|
stackId="a"
|
||||||
|
Loading…
Reference in New Issue
Block a user