diff --git a/services/course-material/src/components/ContentRenderer/moocfi/CongratulationsBlock/Congratulations.tsx b/services/course-material/src/components/ContentRenderer/moocfi/CongratulationsBlock/Congratulations.tsx index 7eb1948a1213..81d5222b73b4 100644 --- a/services/course-material/src/components/ContentRenderer/moocfi/CongratulationsBlock/Congratulations.tsx +++ b/services/course-material/src/components/ContentRenderer/moocfi/CongratulationsBlock/Congratulations.tsx @@ -89,14 +89,10 @@ const ModuleWrapper = styled.div` ` export interface CongratulationsProps { - courseInstanceId: string modules: Array } -const Congratulations: React.FC> = ({ - courseInstanceId, - modules, -}) => { +const Congratulations: React.FC> = ({ modules }) => { const { t } = useTranslation() const someModuleCompleted = modules.some((module) => module.completed) @@ -126,7 +122,7 @@ const Congratulations: React.FC> = .map((module) => ( ))} diff --git a/services/course-material/src/components/ContentRenderer/moocfi/CongratulationsBlock/CongratulationsLinks.tsx b/services/course-material/src/components/ContentRenderer/moocfi/CongratulationsBlock/CongratulationsLinks.tsx index 230475650610..ed656cd0a976 100644 --- a/services/course-material/src/components/ContentRenderer/moocfi/CongratulationsBlock/CongratulationsLinks.tsx +++ b/services/course-material/src/components/ContentRenderer/moocfi/CongratulationsBlock/CongratulationsLinks.tsx @@ -24,12 +24,12 @@ const StyledLink = styled.a` ` export interface CongratulationsLinksProps { - courseInstanceId: string + certificateConfigurationId: string | null module: UserModuleCompletionStatus } const CongratulationsLinks: React.FC> = ({ - courseInstanceId, + certificateConfigurationId, module, }) => { const { t } = useTranslation() @@ -49,9 +49,9 @@ const CongratulationsLinks: React.FC )} - {module.certification_enabled && ( + {module.certification_enabled && certificateConfigurationId && (