Skip to content

Commit 6f10ec0

Browse files
committed
Don't show data from the future
1 parent 0541c89 commit 6f10ec0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export function readSpeakers(year: ConferenceYear): SchedSpeaker[] {
2121
.filter(x => !!x)
2222
// we prefer the data from the most recent years
2323
.sort((a, b) => Math.max(...a._years) - Math.max(...b._years))
24+
// and the `year` of the conference we're fetching data for
25+
.concat([speaker])
2426
.reduce(mergeSpeaker)
2527
)
2628
}

0 commit comments

Comments
 (0)