diff --git a/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx b/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx index bc1cd92039..cd4f49a3ec 100644 --- a/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx +++ b/src/course-home/progress-tab/certificate-status/CertificateStatus.jsx @@ -185,7 +185,7 @@ const CertificateStatus = () => { default: // if user completes a course before certificates are available, treat it as notAvailable // regardless of passing or nonpassing status - if (!canViewCertificate) { + if (!canViewCertificate && end) { certCase = 'notAvailable'; // use the certificate_available_date if it is available, otherwise use the end date of the course endDate = intl.formatDate((certificateAvailableDate || end), {