Round off course card grade

Grades appeared with many decimals on their Programs page.To avoid it,
course grade is rounded off so that decimals can be ignored.

LEARNER-5984
This commit is contained in:
uzairr
2019-05-14 18:39:54 +05:00
parent 0b48665ad2
commit 6f00a2a82d

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');