Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ×
- Unhandled Rejection (TypeError): Cannot read property 'includes' of undefined
- getBuildsWithEndDate
- C:/Users/Owner/Desktop/Tronwatt/test7/src/utils/index.js:89
- 86 | .unix(time)
- 87 | .add(length, 'days')
- 88 | .format('X');
- > 89 | let inactive = lockedBuilds.includes(i);
- | ^ 90 | result.push({
- 91 | id: i + 1,
- 92 | name: plantNames[id],
- View compiled
- async
- C:/Users/Owner/Desktop/Tronwatt/test7/src/components/ActiveOperations.js:22
- 19 | await Utils.setContract();
- 20 | if(Utils.contract){
- 21 | this.interval = setInterval(async () => {
- > 22 | let activePlants = await Utils.getBuildsWithEndDate();
- | ^ 23 | this.setState({ activePlants });
- 24 | }, 1000);
- 25 | }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement