fix last type error

This commit is contained in:
vcoppe committed 2026-10-31 15:21:11 +01:00
1 parent fbd8775528
commit c778766293
1 file changed
+4 -1
@@ -346,7 +346,8 @@ export class ElevationProfile {
grid: { grid: {
display: false, display: false,
}, },
reverse: () => id === 'speed' && get(velocityUnits) === 'pace', // the pace axis is reversed: set with the data, which the units change
reverse: false,
display: false, display: false,
}; };
}); });
@@ -562,6 +563,8 @@ export class ElevationProfile {
global.totalDistance, global.totalDistance,
units.distance units.distance
); );
// a faster pace is a lower value, it goes up like a higher speed
this._chart.options.scales!.yspeed!.reverse = units.velocity === 'pace';
this.setVisibility(); this.setVisibility();
this.setFill(); this.setFill();