Skip to content

Commit bf93d38

Browse files
authored
Merge pull request #548 from topcoder-platform/TCA-1076
TCA-1076 adds `learnedOutcomes` property support
2 parents c4cae24 + 6fe70d5 commit bf93d38

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src-ts/tools/learn/learn-lib/data-providers/tca-certifications-provider/tca-certification.model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export interface TCACertification {
1818
id: number
1919
introText: string
2020
learnerLevel: TCACertificationLearnLevel
21+
learnedOutcomes: string[]
2122
learningOutcomes: string[]
2223
prerequisites: string[]
2324
providers: Array<TCACertificationProviderBase>

src-ts/tools/learn/tca-certificate/validate-certificate/ValidateTCACertificate.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ const ValidateTCACertificate: FC<{}> = () => {
6363

6464
const courses: any = certification?.certificationResources
6565

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])
6868

6969
const coursesGridItems: ReactNode[] | undefined
7070
= useMemo(() => courses?.map((course: any) => (
@@ -171,7 +171,7 @@ const ValidateTCACertificate: FC<{}> = () => {
171171
{enrollment?.userName}
172172
{' Learned?'}
173173
</h2>
174-
<ul>{learningOutcomes}</ul>
174+
<ul>{learnedOutcomes}</ul>
175175

176176
<div className={styles.courses}>
177177
<h2>Courses Taken</h2>

0 commit comments

Comments
 (0)