# Drum Machine Error at 6th Condition

**URL:** <https://forum.freecodecamp.org/t/drum-machine-error-at-6th-condition/226355>\
**Category:** General\
**Created:** [September 13, 2018, 12:00pm UTC](https://forum.freecodecamp.org/t/drum-machine-error-at-6th-condition/226355 "2018-09-13T12:00:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![iibarbari](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/iibarbari/32/71430_2.png) [@iibarbari](https://forum.freecodecamp.org/u/iibarbari)\
**Post date:** [September 13, 2018, 12:00pm UTC](https://forum.freecodecamp.org/t/drum-machine-error-at-6th-condition/226355/1 "2018-09-13T12:00:19Z")

</div>

I checked other topics and couldn’t find this type of problem. Although my code works, error tab tells me it is not working.

_No audio plays when the Q key is pressed : expected true to be false_

But it plays when Q key is pressed.

Here is my code [https://bitbucket.org/ilknurultanir/drum-machine/src/master/](https://bitbucket.org/ilknurultanir/drum-machine/src/master/)  
You can check it from [https://serene-stream-13297.herokuapp.com/](https://serene-stream-13297.herokuapp.com/)

---

<div class="post-metadata">

**Author:** ![Emgo-Dev](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/emgo-dev/32/85000_2.png) [@Emgo-Dev](https://forum.freecodecamp.org/u/Emgo-Dev)\
**Post date:** [September 13, 2018, 2:54pm UTC](https://forum.freecodecamp.org/t/drum-machine-error-at-6th-condition/226355/2 "2018-09-13T14:54:06Z")

</div>

```auto
Warning: Invalid DOM property `class`. Did you mean `className`? in div (at Drums.js:67) in div (created by Container) in Container (at Drums.js:27) in Drums (at App.js:9) in div (at App.js:8) in App (at src/index.js:8

```

This error lists several files because you used bundled them.

You’d be surprised how errors such as these **snowball** in these kind of scripted apps especially with artificial checks like the FCC tester.

---

<div class="post-metadata">

**Author:** ![iibarbari](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/iibarbari/32/71430_2.png) [@iibarbari](https://forum.freecodecamp.org/u/iibarbari)\
**Post date:** [September 14, 2018, 1:01pm UTC](https://forum.freecodecamp.org/t/drum-machine-error-at-6th-condition/226355/3 "2018-09-14T13:01:24Z")

</div>

It wasn’t the issue but you’re right. Thanks for the help. 🕶

---

<div class="post-metadata">

**Author:** ![iibarbari](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/iibarbari/32/71430_2.png) [@iibarbari](https://forum.freecodecamp.org/u/iibarbari)\
**Post date:** [September 14, 2018, 1:09pm UTC](https://forum.freecodecamp.org/t/drum-machine-error-at-6th-condition/226355/4 "2018-09-14T13:09:09Z")

</div>

**Solved**

The issue was after i clicked a button and then pressed a keyboard buttonit wasn’t working. Because it was focused on the first key i clicked. If you dont use \<`a`\> but \<`button`\> it would be good to check it out. Hope it helps.

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:10pm UTC](https://forum.freecodecamp.org/t/drum-machine-error-at-6th-condition/226355/5 "2021-01-17T20:10:31Z")

</div>

Closed on January 17, 2021, 8:10pm UTC


