Skip to content

Commit

Permalink
ADHOC: fix some calendar bugs (#318)
Browse files Browse the repository at this point in the history
Fix calendar erp correctness check and changelog date.
  • Loading branch information
danielxue authored Aug 25, 2024
1 parent fe61bcc commit 5358f79
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
>
Expand Down Expand Up @@ -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)
}
>
Expand Down
2 changes: 1 addition & 1 deletion frontend/components/Changelog/changelogfile.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down

0 comments on commit 5358f79

Please sign in to comment.