File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
course-home/progress-tab/certificate-status
courseware/course/course-exit Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,8 @@ const CertificateStatus = () => {
187
187
// regardless of passing or nonpassing status
188
188
if ( ! canViewCertificate ) {
189
189
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 ) , {
191
192
year : 'numeric' ,
192
193
month : 'long' ,
193
194
day : 'numeric' ,
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const CELEBRATION_STATUSES = [
17
17
'audit_passing' ,
18
18
'downloadable' ,
19
19
'earned_but_not_available' ,
20
+ 'not_earned_but_available_date' ,
20
21
'honor_passing' ,
21
22
'requesting' ,
22
23
'unverified' ,
You can’t perform that action at this time.
0 commit comments