Skip to content

Commit 9dd484f

Browse files
author
Suhas Hariharan
committed
Fixed comment
Signed-off-by: Suhas Hariharan <[email protected]>
1 parent 8f48390 commit 9dd484f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/js/components/CumulativeGPA.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default {
151151
el.innerHTML = data;
152152
const current_term_history = el.getElementsByClassName("selected")[0].textContent.split(" - ")[0];
153153
const tabs = el.getElementsByClassName("tabs")[0].getElementsByTagName("li");
154-
// Iterate until the end of tabs or until no longer at a high school semester, first value indicates whether the course list is the most recent set of courses
154+
// Iterate until the end of tabs or until no longer at a high school semester
155155
for (let i = 0; i < tabs.length && /HS$/.test(tabs[i].innerText); i++) {
156156
fetches.push(
157157
fetch(tabs[i].getElementsByTagName("a")[0].href)
@@ -200,7 +200,7 @@ export default {
200200
}
201201
}
202202
}
203-
// Handles edge case where grade history page is updated before semester end
203+
// Handles edge case where grade history page is updated before semester end, removes the old value and counts the latest version of the current semester.
204204
if (current_term_history === current_term && include_current_semester && current_term_grades.length === 2 && current_semester) {
205205
all_courses.splice(all_courses.indexOf(current_term_grades[1]), 1);
206206
} else if (current_term_history === current_term && include_current_semester && current_term_grades.length === 1 && current_semester === false) {

0 commit comments

Comments
 (0)