Skip to content

Commit 9f6d57c

Browse files
authored
fix: Do not access Object.prototype method 'hasOwnProperty' from target object.
1 parent 2246191 commit 9f6d57c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/SEQTA.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -2264,8 +2264,7 @@ export async function loadHomePage() {
22642264
// Gets all subjects for the student
22652265
for (let i = 0; i < classes.length; i++) {
22662266
const element = classes[i];
2267-
2268-
if (element.hasOwnProperty("active")) {
2267+
if (Object.prototype.hasOwnProperty.call(element, "active")) {
22692268
// Finds the active class list with the current subjects
22702269
activeClass = classes[i]
22712270
}

0 commit comments

Comments
 (0)