Skip to content

Commit

Permalink
comment out "average speed" card
Browse files Browse the repository at this point in the history
"Average speed" needs to be handled differently because it is not mathematically correct to average it across days without considering differences in distance and duration between those days.
(described in e-mission/e-mission-docs#961)

We can comment this out; maybe revisit later
  • Loading branch information
JGreenlee committed Aug 28, 2023
1 parent 9c8e884 commit 8839613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions www/js/metrics/MetricsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,11 @@ const MetricsTab = () => {
aggMetricsDays={aggMetrics?.duration}
axisUnits={t('metrics.hours')}
unitFormatFn={secondsToHours} />
<MetricsCard cardTitle={t('main-metrics.mean-speed')}
{/* <MetricsCard cardTitle={t('main-metrics.mean-speed')}
userMetricsDays={userMetrics?.mean_speed}
aggMetricsDays={aggMetrics?.mean_speed}
axisUnits={speedSuffix}
unitFormatFn={getFormattedSpeed} />
unitFormatFn={getFormattedSpeed} /> */}
</Carousel>
</ScrollView>
</>);
Expand Down

0 comments on commit 8839613

Please sign in to comment.