Commit b72642c3 authored by Zac Wood's avatar Zac Wood

Generate button is disabled when the schedule is empty

parent 55c185f4
......@@ -47,7 +47,12 @@ class ScheduleBadge extends React.Component<ScheduleBadgeProps, State> {
Close
</Button>
<h1 className="px-3">Your Schedule</h1>
<Button size="sm" outline color="primary" onClick={() => generateCalendar(schedule)}>
<Button
size="sm"
outline
color="primary"
onClick={() => generateCalendar(schedule)}
disabled={schedule.length === 0}>
Generate
</Button>
</Row>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment