Skip to content

Commit fc71a83

Browse files
authored
Merge pull request #614 from coding-blocks/features/newExcellenceCertificateEligibility
change eligibilty criteriafor excellence certificate
2 parents c8696b8 + 149b61c commit fc71a83

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/pods/components/certificate-comp/excellence-certificate-modal/component.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default class ExcellenceCertificateModal extends Component {
1515

1616
@computed('stats')
1717
get isQualifiedForExcellenceCertififcate() {
18-
return this.courseCompleted && (this.stats.performance.percentile > this.run.get('excellenceThreshold'))
18+
return this.courseCompleted && (this.stats.performance.scoreCompletionPercentage >= this.run.get('excellenceThreshold'))
1919
}
2020

2121
@dropTask excellenceCertificateTask = function* () {
@@ -35,4 +35,4 @@ export default class ExcellenceCertificateModal extends Component {
3535
window.open(this.excellenceCertificate.url, '_blank')
3636
}
3737

38-
};
38+
};

app/pods/components/certificate-comp/excellence-certificate-modal/template.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
</p>
2323

2424
<p class="font-sm">
25-
Complete {{run.completionThreshold}}% of the course and be in the top {{run.excellenceThreshold}}
26-
percentile to generate excellence certificate.</p>
25+
Complete {{run.completionThreshold}}% of the course and score {{run.excellenceThreshold}}%
26+
of the total score to generate excellence certificate.</p>
2727
</div>
2828

2929
{{#if canDownload}}

0 commit comments

Comments
 (0)