EatTheBlocks Forum

Unhandled Rejection (TypeError): e.preventDefault is not a function

i am getting this error for DApp 30 Voting project:

Unhandled Rejection (TypeError): e.preventDefault is not a function

your probably have a typo in your code and dont pass the event object properly.
You can copy and paste the code from github.