aboutsummaryrefslogtreecommitdiff
path: root/web/frontend/climb-profile.ts
diff options
context:
space:
mode:
Diffstat (limited to 'web/frontend/climb-profile.ts')
-rw-r--r--web/frontend/climb-profile.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/frontend/climb-profile.ts b/web/frontend/climb-profile.ts
index 8910349..6051ec1 100644
--- a/web/frontend/climb-profile.ts
+++ b/web/frontend/climb-profile.ts
@@ -1,5 +1,5 @@
import { drawOfficialSections, officialProfilePlot, resolveOfficialProfileColors } from "./official-climb-profile.js";
-import { displayStepForLength, officialProfileSections } from "./official-climb-profile-logic.js";
+import { officialProfileSections } from "./official-climb-profile-logic.js";
import type { OfficialProfileSection } from "./official-climb-profile-logic.js";
import type { ProfilePoint } from "./types.js";
@@ -24,7 +24,7 @@ const climbProfilePoints = (payload: ClimbProfilePayload): ProfilePoint[] =>
const climbProfileSections = (payload: ClimbProfilePayload): OfficialProfileSection[] => {
const points = climbProfilePoints(payload);
if (points.length < 2) return [];
- return officialProfileSections(points, 0, points.length - 1, displayStepForLength(payload.distanceKm * 1000));
+ return officialProfileSections(points, 0, points.length - 1);
};
const elevationAtDistance = (sections: OfficialProfileSection[], distanceKm: number): number | null => {