Skip to content

Commit

Permalink
Fix: returning value of isCheckerBtnAvailable
Browse files Browse the repository at this point in the history
  • Loading branch information
amasin76 committed Sep 18, 2023
1 parent 55a4062 commit 79c2017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/content/getProjectData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function isCheckerBtnAvailable(): boolean {
// Check if a checker button is present on the page
const checkerBtn = document.querySelectorAll("button[id='task-num-0-check-code-btn']");

return !!checkerBtn;
return !!checkerBtn.length;
}

function getProjectData(
Expand Down

0 comments on commit 79c2017

Please sign in to comment.