Commit 9fe20fb6 authored by Administrator's avatar Administrator

show only activities with an average heart rate > 20 bpm

parent 80e3fbec
......@@ -34,7 +34,7 @@ class _AthleteHeartRateWidgetState extends State<AthleteHeartRateWidget> {
if (activities.isNotEmpty) {
final List<Activity> heartRateActivities = activities
.where((Activity activity) =>
activity.avgSpeed != null && activity.avgSpeed > 0)
activity.avgHeartRate != null && activity.avgHeartRate > 20)
.toList();
if (heartRateActivities.isNotEmpty) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment