From 44b3e0175e2407a83445a8449b7831721fe47830 Mon Sep 17 00:00:00 2001 From: James Kachel Date: Fri, 23 Jun 2023 15:58:57 -0500 Subject: [PATCH] Fixes the course count on cards in My Programs (#1690) --- frontend/public/src/components/EnrolledItemCard.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frontend/public/src/components/EnrolledItemCard.js b/frontend/public/src/components/EnrolledItemCard.js index 9c7693cd66..f6c50af953 100644 --- a/frontend/public/src/components/EnrolledItemCard.js +++ b/frontend/public/src/components/EnrolledItemCard.js @@ -576,12 +576,7 @@ export class EnrolledItemCard extends React.Component< const pageLocation = null const courseRunStatusMessageText = null const menuTitle = `Program information for ${enrollment.program.title}` - const courseCount = - enrollment.program.requirements && - enrollment.program.requirements.required - ? enrollment.program.requirements.electives.length + - enrollment.program.requirements.required.length - : enrollment.program.courses.length + const courseCount = enrollment.program.courses.length const hasPassed = enrollment.certificate ? true : false return (