From 9e88f3efe1237e3c8f370401778d127b522dfb03 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Mon, 23 Sep 2019 19:32:21 -0400 Subject: [PATCH] [U] Ignore 0 grades in calculations --- src/utils/gpa-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/gpa-utils.ts b/src/utils/gpa-utils.ts index ae8b48b..550a2b3 100644 --- a/src/utils/gpa-utils.ts +++ b/src/utils/gpa-utils.ts @@ -42,7 +42,7 @@ export class GPAUtils // Remove all courses that does not have a grade coursesOriginal.forEach(course => { - if (course.numericGrade == null) + if (course.numericGrade == null || course.numericGrade == 0) { accurate = false; }