May have encountered a bug, I’m not sure, but I cannot get this step to work. It just keeps asking me to enter the second line of the callback. I can swap the lines around but it will always think the second line isn’t there. I can add a console.log as a test between the 2 lines and after the second, both will print to console. The code also works as expected when I test the buttons. It’s just whatever statement comes second wont be detected by the tester. I can’t progress further
discardBtn.addEventListener('click', () => {
confirmCloseDialog.close()
taskForm.classList.toggle("hidden")
})