From ed9a8d2232242cea9ce1bb0158a68414034bdb0e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrey=20Ca=C3=B1on?= <36200299+andrey-canon@users.noreply.github.com> Date: Tue, 21 Oct 2025 11:56:12 -0500 Subject: [PATCH] fix: this checks that the course has an end date before rendering certificate message (#65) --- .../progress-tab/certificate-status/CertificateStatus.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), {