Skip to content

Commit

Permalink
Fix some reviewed issues
Browse files Browse the repository at this point in the history
  • Loading branch information
100gle committed Jan 23, 2024
1 parent ca6c060 commit 81d6f8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions static/js/passed-state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@


class PassedState {

_key = 'python-type-challenges';
Expand Down
6 changes: 3 additions & 3 deletions templates/components/challenge_area.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
// add confetti effect when passed
if (json.passed) {
confetti.addConfetti()
// passedState has defined in challenge_sidebar.html
// passedState is defined in challenge_sidebar.html
passedState.setPassed(level, name);
document.getElementById(`${level}-${name}`).parentNode.classList.add('passed');
}
Expand Down Expand Up @@ -158,7 +158,7 @@
activeChallengeInList.parentNode.classList.add('active-challenge'); // Highlight
}

codeUnderTest = {{code_under_test | tojson}};
testCode = {{ test_code | tojson }};
let codeUnderTest = {{code_under_test | tojson}};
let testCode = {{ test_code | tojson }};
renderCodeArea(codeUnderTest, testCode, "{{level}}", "{{name}}");
</script>

0 comments on commit 81d6f8e

Please sign in to comment.