diff --git a/fittrackee_client/src/components/Common/Stats/StatsChart.jsx b/fittrackee_client/src/components/Common/Stats/StatsChart.jsx index 1862b0d5..13367fa6 100644 --- a/fittrackee_client/src/components/Common/Stats/StatsChart.jsx +++ b/fittrackee_client/src/components/Common/Stats/StatsChart.jsx @@ -28,7 +28,7 @@ export default class StatsCharts extends React.PureComponent { render() { const { displayedData } = this.state - const { sports, stats, t } = this.props + const { sports, stats, t, withElevation } = this.props if (Object.keys(stats).length === 0) { return t('common:No workouts.') } @@ -53,24 +53,28 @@ export default class StatsCharts extends React.PureComponent { /> {t('statistics:duration')} - - + {withElevation && ( + <> + + + + )}