This reverts commit 973f3d68aa.
This commit is contained in:
@@ -8,7 +8,7 @@ import { postCourseEnrollment } from './data/api';
|
||||
|
||||
|
||||
export function useEnrollmentAlert(courseId) {
|
||||
const course = useModel('courseHomeMetadata', courseId);
|
||||
const course = useModel('courses', courseId);
|
||||
const code = course.isStaff ? 'clientStaffEnrollmentAlert' : 'clientEnrollmentAlert';
|
||||
const isVisible = course && course.isEnrolled !== undefined && !course.isEnrolled;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user