Skip to content

Commit 2d01cb9

Browse files
committed
Merge remote-tracking branch 'origin/master' into dev
2 parents 7591244 + 24036ec commit 2d01cb9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src-ts/tools/learn/welcome/courses-card/CoursesCard.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
6060
}
6161

6262
const completionTimeRange: TCACertificationCompletionTimeRange = useHoursEstimateToRange(
63-
props.certification.course.estimatedCompletionTimeValue,
63+
props.certification.course?.estimatedCompletionTimeValue,
6464
)
6565

6666
return (
6767
<div className={classNames(styles.wrap, !courseEnabled && 'soon', isCompleted && styles.completed)}>
6868
<div className={styles.cardHeader}>
69-
<CourseBadge type={props.certification.certificationCategory.track ?? 'DEV'} />
69+
<CourseBadge type={props.certification.certificationCategory?.track ?? 'DEV'} />
7070
<div className={styles.cardHeaderTitleWrap}>
7171
<p className='body-medium-medium'>{clearFCCCertificationTitle(props.certification.title)}</p>
7272
<div className={styles.subTitleWrap}>
@@ -97,7 +97,7 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
9797
{(isInProgress || isCompleted) && (
9898
<ProgressBar
9999
progress={(isCompleted ? 100 : (props.progress?.courseProgressPercentage ?? 0)) / 100}
100-
track={props.certification.certificationCategory.track}
100+
track={props.certification.certificationCategory?.track}
101101
/>
102102
)}
103103
{!isInProgress && !isCompleted && <div className={styles.cardHeaderDivider} />}

0 commit comments

Comments
 (0)