[+] Compare numeric grade with current term grade

This commit is contained in:
Hykilpikonna
2019-11-06 21:17:31 -05:00
parent 3337766ae6
commit beb4155aab
+3 -1
View File
@@ -176,8 +176,10 @@ export default class App extends Vue
// Loop through all the courses
for (const course of this.filteredCourses)
{
let termGrade = +GPAUtils.getTotalMeanAverage(course.computed.termAssignments[Constants.CURRENT_TERM]).toFixed(2);
// Check if total-average grade is the same with percent-type grade
if (course.numericGrade == +GPAUtils.getTotalMeanAverage(course).toFixed(2))
if (course.numericGrade == termGrade)
{
course.grading = {method: 'TOTAL_MEAN', weightingMap: {}};
}