diff --git a/app/components/TransactionScanner/TransactionRow.js b/app/components/TransactionScanner/TransactionRow.js index 82883d6c..2b6745c6 100644 --- a/app/components/TransactionScanner/TransactionRow.js +++ b/app/components/TransactionScanner/TransactionRow.js @@ -53,9 +53,7 @@ class TransactionsRow extends Component { }; } - async componentDidMount() { - this._isMounted = true; - + async getUpdatedState() { const preparedState = await this.getPreparedState(); if (!this._isMounted) { @@ -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; diff --git a/app/services/web3.js b/app/services/web3.js index 45af2915..93349533 100644 --- a/app/services/web3.js +++ b/app/services/web3.js @@ -124,7 +124,6 @@ export default class Web3Service { this.connectedToMetaMask = false; } - window.web3 = web3; this.web3 = web3; }