File tree 1 file changed +2
-2
lines changed
src-ts/tools/learn/welcome/courses-card
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
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 } >
@@ -91,7 +91,7 @@ const CoursesCard: FC<CoursesCardProps> = (props: CoursesCardProps) => {
91
91
{ ( isInProgress || isCompleted ) && (
92
92
< ProgressBar
93
93
progress = { ( isCompleted ? 100 : ( props . progress ?. courseProgressPercentage ?? 0 ) ) / 100 }
94
- track = { props . certification . certificationCategory . track }
94
+ track = { props . certification . certificationCategory ? .track }
95
95
/>
96
96
) }
97
97
{ ! isInProgress && ! isCompleted && < div className = { styles . cardHeaderDivider } /> }
You can’t perform that action at this time.
0 commit comments