[F] Fix rounding issue when detecting necessity of grading api
This commit is contained in:
@@ -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: {}};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user