Skip to content

Commit 7fd06f9

Browse files
Merge pull request #433 from ossf/lab_individual_status_bugfix
Show individual statuses as themselves (bugfix)
2 parents 7174eec + 2d09418 commit 7fd06f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/labs/checker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function runCheck() {
195195
let result = calcOneMatch(attempt, i, correctRe);
196196
if (!result) isCorrect = false;
197197
document.getElementById(`attempt${i}`).style.backgroundColor =
198-
isCorrect ? 'lightgreen' : 'yellow';
198+
result ? 'lightgreen' : 'yellow';
199199
};
200200
// isCorrect is now true only if everything matched
201201
let oldGrade = document.getElementById('grade').innerHTML;

0 commit comments

Comments
 (0)