Skip to content

Commit 556ceea

Browse files
committed
feat: display the certificate available date if available in progress tab
1 parent b6c29df commit 556ceea

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/course-home/progress-tab/certificate-status/CertificateStatus.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ const CertificateStatus = () => {
187187
// regardless of passing or nonpassing status
188188
if (!canViewCertificate) {
189189
certCase = 'notAvailable';
190-
endDate = intl.formatDate(end, {
190+
// use the certificate_available_date if it is available, otherwise use the end date of the course
191+
endDate = intl.formatDate((certificateAvailableDate || end), {
191192
year: 'numeric',
192193
month: 'long',
193194
day: 'numeric',

src/courseware/course/course-exit/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const CELEBRATION_STATUSES = [
1717
'audit_passing',
1818
'downloadable',
1919
'earned_but_not_available',
20+
'not_earned_but_available_date',
2021
'honor_passing',
2122
'requesting',
2223
'unverified',

0 commit comments

Comments
 (0)