From aa2d4902e0e6bb7835c8dc5da069bde041d522e6 Mon Sep 17 00:00:00 2001 From: Fred Westling Date: Sun, 7 Apr 2024 08:47:09 +1000 Subject: [PATCH] chore: fix type error --- src/v8/tournament.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/v8/tournament.ts b/src/v8/tournament.ts index 1f27251..ddbfb50 100644 --- a/src/v8/tournament.ts +++ b/src/v8/tournament.ts @@ -217,6 +217,7 @@ export default class Tournament { let worstCaseTravelTime = Number.POSITIVE_INFINITY; for (const team of this.teams) { const slots = this.getAllTimeslots() + .filter((s) => !breaks.includes(s.activityId)) .filter((t) => t.teams.includes(team.id)) .sort((a, b) => a.start - b.start); const travelTimes = slots.map((slot, i) => {