From d72e06842f2c561ef27d0adba6f2b4a51d38a87a Mon Sep 17 00:00:00 2001 From: fragosti Date: Tue, 26 Jun 2018 12:48:00 -0700 Subject: Remove unused variables --- packages/website/ts/components/portal/portal.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/website/ts/components/portal/portal.tsx') diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index 9a61c5d34..bc8705475 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -151,11 +151,11 @@ export class Portal extends React.Component { this.props.dispatcher.resetState(); } public componentDidUpdate(prevProps: PortalProps): void { - // if (!prevProps.blockchainIsLoaded && this.props.blockchainIsLoaded) { - // const trackedTokenAddresses = _.keys(this.state.trackedTokenStateByAddress); - // // tslint:disable-next-line:no-floating-promises - // this._fetchBalancesAndAllowancesAsync(trackedTokenAddresses); - // } + if (!prevProps.blockchainIsLoaded && this.props.blockchainIsLoaded) { + const trackedTokenAddresses = _.keys(this.state.trackedTokenStateByAddress); + // tslint:disable-next-line:no-floating-promises + this._fetchBalancesAndAllowancesAsync(trackedTokenAddresses); + } } public componentWillReceiveProps(nextProps: PortalProps): void { if (nextProps.networkId !== this.state.prevNetworkId) { -- cgit