Skip to content

Commit 2b007d5

Browse files
committed
TCA-1063 - fix cert progress in progress box
1 parent 930df99 commit 2b007d5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src-ts/tools/learn/learn-lib/tca-certification-progress-box/TCACertificationProgressBox.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ const TCACertificationProgressBox: FC<TCACertificationProgressBoxProps> = (props
9090
}
9191

9292
const coursesCount: number = certification.coursesCount
93-
const completedCoursesCount: number = certifProgress
94-
? Math.round(coursesCount * (certifProgress.certificationProgress / 100))
95-
: certification.certificationResources.filter(d => (
96-
progressById[d.freeCodeCampCertification.fccId]?.status === UserCertificationProgressStatus.completed
97-
)).length
93+
const completedCoursesCount: number = certification.certificationResources.filter(d => (
94+
progressById[d.freeCodeCampCertification.fccId]?.status === UserCertificationProgressStatus.completed
95+
)).length
9896
const inProgressCoursesCount: number = certification.certificationResources.filter(d => (
9997
progressById[d.freeCodeCampCertification.fccId]?.status === UserCertificationProgressStatus.inProgress
10098
)).length

0 commit comments

Comments
 (0)