Drum Machine: Can't get tests #6 and #7 to pass in the Drum Machine assignment

Tell us what’s happening:


It is been quite a while since I’ve been trying to get my drum machine to work and visually for me it seems to be all working but it does not pass 2 tests from the FCC script. I have no idea where I should even look to figure out what is causing it.

Could please help me this issue?

Here is my pen.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36.

Challenge: Build a Drum Machine

Link to the challenge:

Usually you want to inspect the element, and check the devtools console for errors. In your case, the error is described here..

Thank you!

I have a feeling that it is happening because I have those lifecycle methods defined in my main component and actually might need to have them defined in the Drumpad component. I’m gonna try to play around and see if it is gonna work!