Skip to content

Commit 7e8062e

Browse files
committed
feat: lower elevation threshold to 750ft
Signed-off-by: Matt Gleich <git@mattglei.ch>
1 parent 0c1b210 commit 7e8062e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/index/sections/workouts/stats.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545
const secondsPerKm = Math.floor(totalSecondsPerKm % 60);
4646
stats.set('Avg. Pace', `${minutesPerKm}:${secondsPerKm.toString().padStart(2, '0')}/km`);
4747
}
48-
} else if (workout.total_elevation_gain && workout.total_elevation_gain > 304.8) {
48+
} else if (workout.total_elevation_gain && workout.total_elevation_gain > 228.6) {
49+
// show elevation if greater than 750ft
4950
stats.set(
5051
'Elevation Gain',
5152
`${Math.round(
@@ -64,6 +65,7 @@
6465
).toLocaleString()} ${imperialUnits ? 'lbs' : 'kg'}`
6566
);
6667
}
68+
6769
if (workout.hevy_set_count) {
6870
stats.set('Sets', `${workout.hevy_set_count ?? 0}`);
6971
}

0 commit comments

Comments
 (0)