Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…ock-dapp into fix/make-faucet-mtamask-component
  • Loading branch information
adibas03 committed Mar 3, 2018
2 parents a71427c + 8214059 commit a8932f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 8 additions & 3 deletions app/components/TransactionScanner/TransactionRow.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,7 @@ class TransactionsRow extends Component {
};
}

async componentDidMount() {
this._isMounted = true;

async getUpdatedState() {
const preparedState = await this.getPreparedState();

if (!this._isMounted) {
Expand All @@ -65,11 +63,18 @@ class TransactionsRow extends Component {
this.setState(preparedState);
}

async componentDidMount() {
this._isMounted = true;

await this.getUpdatedState();
}

async componentWillUnmount() {
this._isMounted = false;
}

render() {
this.getUpdatedState();
const { showStatus, transaction } = this.props;
const { bounty, deposit, status, time, timeWindow, value } = this.state;

Expand Down
1 change: 0 additions & 1 deletion app/services/web3.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export default class Web3Service {
this.connectedToMetaMask = false;
}

window.web3 = web3;
this.web3 = web3;
}

Expand Down

0 comments on commit a8932f7

Please sign in to comment.