Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. ×
  2. Unhandled Rejection (TypeError): Cannot read property 'includes' of undefined
  3. getBuildsWithEndDate
  4. C:/Users/Owner/Desktop/Tronwatt/test7/src/utils/index.js:89
  5. 86 | .unix(time)
  6. 87 | .add(length, 'days')
  7. 88 | .format('X');
  8. > 89 | let inactive = lockedBuilds.includes(i);
  9. | ^ 90 | result.push({
  10. 91 | id: i + 1,
  11. 92 | name: plantNames[id],
  12. View compiled
  13. async
  14. C:/Users/Owner/Desktop/Tronwatt/test7/src/components/ActiveOperations.js:22
  15. 19 | await Utils.setContract();
  16. 20 | if(Utils.contract){
  17. 21 | this.interval = setInterval(async () => {
  18. > 22 | let activePlants = await Utils.getBuildsWithEndDate();
  19. | ^ 23 | this.setState({ activePlants });
  20. 24 | }, 1000);
  21. 25 | }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement