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 = () => {
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' ,
Original file line number Diff line number Diff 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' ,
You can’t perform that action at this time.
0 commit comments