diff --git a/src/courseware/course/chat/Chat.jsx b/src/courseware/course/chat/Chat.jsx index 72739d1c44..6f56406531 100644 --- a/src/courseware/course/chat/Chat.jsx +++ b/src/courseware/course/chat/Chat.jsx @@ -41,16 +41,12 @@ const Chat = ({ const date = new Date(); const utcDate = date.toISOString(); - const enrollmentStartDate = course.enrollmentStart || utcDate; - const startDate = course.start || enrollmentStartDate; - const enrollmentEndDate = course.enrollmentEnd || utcDate; - const endDate = course.end || enrollmentEndDate; + const startDate = course.start || utcDate; + const endDate = course.end || utcDate; return ( - startDate <= enrollmentStartDate - && enrollmentStartDate <= utcDate - && utcDate <= enrollmentEndDate - && enrollmentEndDate <= endDate + startDate <= utcDate + && utcDate <= endDate ); };