SHARE
TWEET

Untitled

a guest Jul 18th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 | }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top