Skip to content

Commit

Permalink
Fixes the course count on cards in My Programs (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkachel committed Jun 23, 2023
1 parent 712d356 commit 44b3e01
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions frontend/public/src/components/EnrolledItemCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 44b3e01

Please sign in to comment.