Skip to content

Commit b6ba817

Browse files
committed
TCA-1013 - show actual modules count & estimated time on course cards in cert details page
1 parent 43b6f51 commit b6ba817

File tree

1 file changed

+5
-2
lines changed
  • src-ts/tools/learn/certification-details/certification-curriculum/curriculum-cards/course-card

1 file changed

+5
-2
lines changed

src-ts/tools/learn/certification-details/certification-curriculum/curriculum-cards/course-card/CourseCard.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const CourseCard: FC<CourseCardProps> = (props: CourseCardProps) => {
8686
}
8787

8888
const completionTimeRange: TCACertificationCompletionTimeRange = useHoursEstimateToRange(
89-
props.certification.completionHours,
89+
props.certification.course.estimatedCompletionTimeValue,
9090
)
9191

9292
return (
@@ -108,7 +108,10 @@ const CourseCard: FC<CourseCardProps> = (props: CourseCardProps) => {
108108
<span className={styles.icon}>
109109
<IconSolid.DocumentTextIcon />
110110
</span>
111-
<span className='quote-small'>4 modules</span>
111+
<span className='quote-small'>
112+
{props.certification.course.modules.length}
113+
{' modules'}
114+
</span>
112115
</li>
113116
<li className={styles.stat}>
114117
<span className={styles.icon}>

0 commit comments

Comments
 (0)