diff --git a/services/frontend/src/components/PopulationDetails/CreditGainStats/CreditsGainedTable.jsx b/services/frontend/src/components/PopulationDetails/CreditGainStats/CreditsGainedTable.jsx index e8ab049196..1de9c83c5e 100644 --- a/services/frontend/src/components/PopulationDetails/CreditGainStats/CreditsGainedTable.jsx +++ b/services/frontend/src/components/PopulationDetails/CreditGainStats/CreditsGainedTable.jsx @@ -39,7 +39,9 @@ export const CreditsGainedTable = ({ filteredStudents, programmeGoalTime, type, } else { creditList = filteredStudents.map(({ studentNumber, courses }) => ({ studentNumber, - credits: getStudentTotalCredits({ courses }), + credits: getStudentTotalCredits({ + courses: courses.filter(course => moment(course.date).isBetween(startDate ?? start, endDate ?? end)), + }), })) }