diff --git a/frontend/components/Calendar/InstructorCalendar/InstructorCalendarModals.tsx b/frontend/components/Calendar/InstructorCalendar/InstructorCalendarModals.tsx index 4857c8a9..4a7fe232 100644 --- a/frontend/components/Calendar/InstructorCalendar/InstructorCalendarModals.tsx +++ b/frontend/components/Calendar/InstructorCalendar/InstructorCalendarModals.tsx @@ -276,8 +276,9 @@ export const EditEventModal = (props: EditEventProps) => { positive disabled={ endDate <= startDate || - moment(erpDate).endOf("day").toDate() < endDate || !title || + (isRecurring && + moment(erpDate).endOf("day").toDate() < endDate) || (isRecurring && recurringDays.length === 0) } > @@ -390,8 +391,9 @@ export const NewEventModal = (props: NewEventProps) => { type="submit" disabled={ endDate <= startDate || - moment(erpDate).endOf("day").toDate() < endDate || !title || + (isRecurring && + moment(erpDate).endOf("day").toDate() < endDate) || (isRecurring && recurringDays.length === 0) } > diff --git a/frontend/components/Changelog/changelogfile.md b/frontend/components/Changelog/changelogfile.md index 0beb0d1c..83f1b9cc 100644 --- a/frontend/components/Changelog/changelogfile.md +++ b/frontend/components/Changelog/changelogfile.md @@ -1,4 +1,4 @@ -# 2024-08-19 +# 2024-08-25 ### Added - Courses may now add a calendar to schedule office hours and provide additional event information to students. Please visit the FAQ for more information.