feat: display the certificate available date if available in progress tab

This commit is contained in:
Diana Olarte
2025-05-26 15:39:18 +10:00
committed by Farhaan Bukhsh
parent 9cbc2276d6
commit e9121f9261
2 changed files with 3 additions and 1 deletions

View File

@@ -187,7 +187,8 @@ const CertificateStatus = () => {
// regardless of passing or nonpassing status
if (!canViewCertificate) {
certCase = 'notAvailable';
endDate = intl.formatDate(end, {
// use the certificate_available_date if it is available, otherwise use the end date of the course
endDate = intl.formatDate((certificateAvailableDate || end), {
year: 'numeric',
month: 'long',
day: 'numeric',

View File

@@ -17,6 +17,7 @@ const CELEBRATION_STATUSES = [
'audit_passing',
'downloadable',
'earned_but_not_available',
'not_earned_but_available_date',
'honor_passing',
'requesting',
'unverified',