File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
learn-lib/data-providers/tca-certifications-provider
tca-certificate/validate-certificate Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ export interface TCACertification {
18
18
id : number
19
19
introText : string
20
20
learnerLevel : TCACertificationLearnLevel
21
+ learnedOutcomes : string [ ]
21
22
learningOutcomes : string [ ]
22
23
prerequisites : string [ ]
23
24
providers : Array < TCACertificationProviderBase >
Original file line number Diff line number Diff line change @@ -63,8 +63,8 @@ const ValidateTCACertificate: FC<{}> = () => {
63
63
64
64
const courses : any = certification ?. certificationResources
65
65
66
- const learningOutcomes : ReactNode [ ] | undefined
67
- = useMemo ( ( ) => certification ?. learningOutcomes . map ( ( lO : string ) => < li > { lO } </ li > ) , [ certification ] )
66
+ const learnedOutcomes : ReactNode [ ] | undefined
67
+ = useMemo ( ( ) => certification ?. learnedOutcomes ? .map ( ( lO : string ) => < li key = { lO } > { lO } </ li > ) , [ certification ] )
68
68
69
69
const coursesGridItems : ReactNode [ ] | undefined
70
70
= useMemo ( ( ) => courses ?. map ( ( course : any ) => (
@@ -171,7 +171,7 @@ const ValidateTCACertificate: FC<{}> = () => {
171
171
{ enrollment ?. userName }
172
172
{ ' Learned?' }
173
173
</ h2 >
174
- < ul > { learningOutcomes } </ ul >
174
+ < ul > { learnedOutcomes } </ ul >
175
175
176
176
< div className = { styles . courses } >
177
177
< h2 > Courses Taken</ h2 >
You can’t perform that action at this time.
0 commit comments