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
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
You can’t perform that action at this time.
0 commit comments