From 0653f41027daf08011c7faac89ba67abf7c35ede Mon Sep 17 00:00:00 2001 From: Vivek205 Date: Mon, 22 Apr 2019 17:56:44 +0530 Subject: [PATCH] Err fix --- src/components/JobDetails.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/components/JobDetails.js b/src/components/JobDetails.js index 1d2af81a4..4f48d39fa 100644 --- a/src/components/JobDetails.js +++ b/src/components/JobDetails.js @@ -238,20 +238,6 @@ export class Jobdetails extends React.Component { } } - startjob() { - var reInitialize = this.reInitializeJobState(); - var serviceSpec = this.fetchServiceSpec(); - Promise.all([reInitialize, serviceSpec]).then(() => { - let mpeTokenInstance = this.props.network.getMPEInstance(this.props.chainId); - mpeTokenInstance.balances(this.props.userAddress, (err, balance) => { - if (err) { - this.processChannelErrors("Unable to retrieve balance. Please retry with a higher gas") - return; - } - if (typeof balance !== 'undefined') { - balance = parseInt(balance) - } - startjob() { this.setState({enableFeedback:false}); var reInitialize = this.reInitializeJobState(); @@ -715,7 +701,7 @@ export class Jobdetails extends React.Component { {this.state.sliderValue}
- f +