From beb4155aab32401495172e99d16780cd9aca1d76 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Wed, 6 Nov 2019 21:17:31 -0500 Subject: [PATCH] [+] Compare numeric grade with current term grade --- src/components/app/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/app/app.ts b/src/components/app/app.ts index 3fe3888..91b8870 100644 --- a/src/components/app/app.ts +++ b/src/components/app/app.ts @@ -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: {}}; }