[F] Fix rounding issue when detecting necessity of grading api

This commit is contained in:
Hykilpikonna
2019-10-05 14:34:47 -04:00
parent 7f094cbafb
commit 7b9dab9d78
+1 -1
View File
@@ -196,7 +196,7 @@ export default class App extends Vue
for (const course of this.filteredCourses)
{
// Check if total-average grade is the same with percent-type grade
if (course.numericGrade == GPAUtils.getTotalMeanAverage(course))
if (course.numericGrade == +GPAUtils.getTotalMeanAverage(course).toFixed(2))
{
course.grading = {method: 'TOTAL_MEAN', weightingMap: {}};
}