Skip to content

Commit 9ed522a

Browse files
committed
Add a todo comment
1 parent dc73e93 commit 9ed522a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/conf/_api/sched-data.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { ConferenceYear, SchedSpeaker } from "./sched-types"
22

33
const allSpeakers: SchedSpeaker[] = require("../../../../scripts/sync-sched/speakers.json")
44

5-
export async function readSpeakers(year: ConferenceYear): SchedSpeaker[] {
5+
export function readSpeakers(year: ConferenceYear): SchedSpeaker[] {
66
return (
77
allSpeakers
88
.filter(speaker => speaker["~years"].includes(year))
@@ -15,3 +15,6 @@ export async function readSpeakers(year: ConferenceYear): SchedSpeaker[] {
1515
})
1616
)
1717
}
18+
19+
// TODO: We need to be able to say that a speaker is returning even if they don't share username, only first name and last name.
20+
// But this needs to be done without adding to `~years` so we don't show duplicates.

0 commit comments

Comments
 (0)