Skip to content

Commit

Permalink
gate check behind isrecurring check.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielxue committed Aug 25, 2024
1 parent fe61bcc commit b0b0b41
Showing 1 changed file with 4 additions and 2 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

0 comments on commit b0b0b41

Please sign in to comment.