Merge pull request #20549 from edx/LEARNER-5984/round-off-grade

Round off course card grade
This commit is contained in:
Uzair Rasheed
2019-05-15 18:15:32 +05:00
committed by GitHub

View File

@@ -31,7 +31,7 @@ class CourseCardView extends Backbone.View {
this.model.updateCourseRunWithHighestGrade(this.context.courseData.grades);
}
this.grade = this.context.courseData.grades[this.model.get('course_run_key')];
this.grade = this.grade * 100;
this.grade = Math.round(this.grade * 100);
this.collectionCourseStatus = this.context.collectionCourseStatus || '';
this.entitlement = this.model.get('user_entitlement');