Skip to content

Commit 04a10de

Browse files
committed
fix: correct order of date parsing in ConferenceCard component
1 parent 5e8dd14 commit 04a10de

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/features/conferences/ConferenceCard.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ export const ConferenceCard = React.memo(function ConferenceCard({
99
conference: HTConference;
1010
}) {
1111
const start =
12-
toDate(conference.start_date) ?? toDate(conference.start_timestamp);
13-
const end = toDate(conference.end_date) ?? toDate(conference.end_timestamp);
12+
toDate(conference.start_timestamp) ?? toDate(conference.start_date);
13+
const end = toDate(conference.end_timestamp) ?? toDate(conference.end_date);
1414
const range = formatDateRange(start, end, conference.timezone);
1515
const tz = tzAbbrev(conference.timezone);
1616

0 commit comments

Comments
 (0)