Skip to content

Commit

Permalink
Optional end time
Browse files Browse the repository at this point in the history
  • Loading branch information
bcheidemann committed Dec 16, 2023
1 parent 1b353d8 commit 3270699
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/outright/Schedule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const Schedule = () => {
)}
</div>
<span className={streamTime}>
{item.start} - {item.end}
{item.start}{item.end && ` - ${item.end}`}
</span>
{item.info && <p style={{ margin: 0 }}>{item.info}</p>}
</li>
Expand Down Expand Up @@ -122,10 +122,10 @@ async function getSchedule() {
case "END":
END_IDX = item.indexOf(header);
break;
case "LINK?":
case "LINK":
LINK_IDX = item.indexOf(header);
break;
case "INFO?":
case "INFO":
INFO_IDX = item.indexOf(header);
break;
}
Expand Down Expand Up @@ -155,7 +155,7 @@ type ScheduleItem = {
day: string;
creator: string;
start: string;
end: string;
end?: string;
link?: string;
info?: string;
};

0 comments on commit 3270699

Please sign in to comment.