blockchain-IoT / Motoro

Smart contracts for decentralized rentals of vehicles.
https://www.toptal.com/ethereum/motoro-iot-in-transportation
MIT License
107 stars 39 forks source link

State is undefined #51

Closed adammankowski1 closed 6 years ago

adammankowski1 commented 6 years ago

Expected behavior (user story)

Clicking the register button on the main page (Create new instance of MachineOwner contract) should create new instance of MachineOwner contract and give access to register new machine.

Actual behavior

After clicking the register button on the main page application throws App.js:132 Uncaught TypeError: Cannot read property 'state' of undefined It is for sure related to App:144 where we put callback without binding it. The same is with App.js:L148-L149

Steps to reproduce

  1. Click the register button on the bottom of the page
  2. Check console for undefined state error