diff --git a/src/components/dashboard/main-content/course-enrollments/course-cards/CompletedCourseCard.jsx b/src/components/dashboard/main-content/course-enrollments/course-cards/CompletedCourseCard.jsx index 1d8a0dd7cd..a100695f35 100644 --- a/src/components/dashboard/main-content/course-enrollments/course-cards/CompletedCourseCard.jsx +++ b/src/components/dashboard/main-content/course-enrollments/course-cards/CompletedCourseCard.jsx @@ -8,6 +8,7 @@ import ContinueLearningButton from './ContinueLearningButton'; import { isCourseEnded } from '../../../../../utils/common'; import CertificateImg from './images/edx-verified-mini-cert.png'; +import { EXECUTIVE_EDUCATION_COURSE_MODES } from '../../../../app/data'; const CompletedCourseCard = (props) => { const { authenticatedUser: { username } } = useContext(AppContext); @@ -38,7 +39,7 @@ const CompletedCourseCard = (props) => { /> ); }; - + const isExecutiveEducation2UCourse = EXECUTIVE_EDUCATION_COURSE_MODES.includes(mode); const renderCertificateInfo = () => ( props.linkToCertificate ? (
@@ -55,12 +56,14 @@ const CompletedCourseCard = (props) => {
) : ( -

- To earn a certificate,{' '} - - retake this course → - -

+ !isExecutiveEducation2UCourse && ( +

+ To earn a certificate,{' '} + + retake this course → + +

+ ) ) );