Skip to content

Commit 3ff23cc

Browse files
committed
Show only speakers that have an active session
1 parent 020cc07 commit 3ff23cc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/conf/2025/_data.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { SchedSpeaker, ScheduleSession } from "@/app/conf/2023/types"
44
import { readSpeakers } from "../_api/sched-data"
55

66
export const schedule: ScheduleSession[] = require("../../../../scripts/sync-sched/schedule-2025.json")
7-
export const speakers: SchedSpeaker[] = readSpeakers(2025)
87

98
type SpeakerUsername = SchedSpeaker["username"]
109

@@ -20,6 +19,10 @@ for (const session of schedule) {
2019
}
2120
}
2221

22+
export const speakers: SchedSpeaker[] = readSpeakers(2025).filter(speaker =>
23+
speakerSessions.has(speaker.username),
24+
)
25+
2326
export const previousEditionSessions = new Map<
2427
SpeakerUsername,
2528
ScheduleSession[]

0 commit comments

Comments
 (0)