Fix if statement
This commit is contained in:
parent
22815bb405
commit
b2dfccf869
@ -220,7 +220,10 @@ const Schedule = () => {
|
|||||||
)
|
)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (scheduleData) {
|
if (
|
||||||
|
scheduleData?.start_date_for_enrollment_students &&
|
||||||
|
scheduleData?.end_date_for_enrollment_students
|
||||||
|
) {
|
||||||
setStartDate(new Date(scheduleData.start_date_for_enrollment_students))
|
setStartDate(new Date(scheduleData.start_date_for_enrollment_students))
|
||||||
setEndDate(new Date(scheduleData.end_date_for_enrollment_students))
|
setEndDate(new Date(scheduleData.end_date_for_enrollment_students))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user