display only 3 decimals for distance on month statistics - fix #24

This commit is contained in:
Sam 2018-07-29 11:34:13 +02:00
parent a05ccbdd10
commit 35e80de953

View File

@ -101,7 +101,9 @@ class Statistics extends React.Component {
dataKey={s.label}
formatter={value => displayedData === 'duration'
? format(formatDuration(value), 'HH:mm')
: value
: displayedData === 'distance'
? value.toFixed(3)
: value
}
stackId="a"
fill={activityColors[i]}