diff --git a/services/frontend/src/components/CourseStatistics/SingleCourseStats/index.jsx b/services/frontend/src/components/CourseStatistics/SingleCourseStats/index.jsx index f90bd42430..19c2650a04 100644 --- a/services/frontend/src/components/CourseStatistics/SingleCourseStats/index.jsx +++ b/services/frontend/src/components/CourseStatistics/SingleCourseStats/index.jsx @@ -235,10 +235,7 @@ const SingleCourseStats = ({ } const countStudentEnrollmentStats = (allAttempts, filteredEnrollments, displayEnrollments) => { - const enrolledStudentsWithNoGrade = filteredEnrollments.filter(({ studentNumber, state }) => { - if (state !== 'ENROLLED') { - return false - } + const enrolledStudentsWithNoGrade = filteredEnrollments.filter(({ studentNumber }) => { const hasFailed = allAttempts.categories.failed ? allAttempts.categories.failed.includes(studentNumber) : false const hasPassed = allAttempts.categories.passed ? allAttempts.categories.passed.includes(studentNumber) : false return !hasFailed && !hasPassed