File tree 1 file changed +3
-3
lines changed
src-ts/tools/learn/welcome/courses-card
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -60,13 +60,13 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
60
60
}
61
61
62
62
const completionTimeRange : TCACertificationCompletionTimeRange = useHoursEstimateToRange (
63
- props . certification . course . estimatedCompletionTimeValue ,
63
+ props . certification . course ? .estimatedCompletionTimeValue ,
64
64
)
65
65
66
66
return (
67
67
< div className = { classNames ( styles . wrap , ! courseEnabled && 'soon' , isCompleted && styles . completed ) } >
68
68
< div className = { styles . cardHeader } >
69
- < CourseBadge type = { props . certification . certificationCategory . track ?? 'DEV' } />
69
+ < CourseBadge type = { props . certification . certificationCategory ? .track ?? 'DEV' } />
70
70
< div className = { styles . cardHeaderTitleWrap } >
71
71
< p className = 'body-medium-medium' > { clearFCCCertificationTitle ( props . certification . title ) } </ p >
72
72
< div className = { styles . subTitleWrap } >
@@ -97,7 +97,7 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
97
97
{ ( isInProgress || isCompleted ) && (
98
98
< ProgressBar
99
99
progress = { ( isCompleted ? 100 : ( props . progress ?. courseProgressPercentage ?? 0 ) ) / 100 }
100
- track = { props . certification . certificationCategory . track }
100
+ track = { props . certification . certificationCategory ? .track }
101
101
/>
102
102
) }
103
103
{ ! isInProgress && ! isCompleted && < div className = { styles . cardHeaderDivider } /> }
You can’t perform that action at this time.
0 commit comments