File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src-ts/tools/learn/learn-lib/tca-certification-progress-box Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -90,11 +90,9 @@ const TCACertificationProgressBox: FC<TCACertificationProgressBoxProps> = (props
90
90
}
91
91
92
92
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
98
96
const inProgressCoursesCount : number = certification . certificationResources . filter ( d => (
99
97
progressById [ d . freeCodeCampCertification . fccId ] ?. status === UserCertificationProgressStatus . inProgress
100
98
) ) . length
You can’t perform that action at this time.
0 commit comments