diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-27 03:48:00 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-27 03:48:00 +0800 |
commit | d72e06842f2c561ef27d0adba6f2b4a51d38a87a (patch) | |
tree | e3ecec70f5e2337e1d633481b44a36ca6e9d6551 /packages/website/ts/components | |
parent | 0a0da63ac7913f0c3a27147a700c9a3dbccf0c40 (diff) | |
download | dexon-sol-tools-d72e06842f2c561ef27d0adba6f2b4a51d38a87a.tar dexon-sol-tools-d72e06842f2c561ef27d0adba6f2b4a51d38a87a.tar.gz dexon-sol-tools-d72e06842f2c561ef27d0adba6f2b4a51d38a87a.tar.bz2 dexon-sol-tools-d72e06842f2c561ef27d0adba6f2b4a51d38a87a.tar.lz dexon-sol-tools-d72e06842f2c561ef27d0adba6f2b4a51d38a87a.tar.xz dexon-sol-tools-d72e06842f2c561ef27d0adba6f2b4a51d38a87a.tar.zst dexon-sol-tools-d72e06842f2c561ef27d0adba6f2b4a51d38a87a.zip |
Remove unused variables
Diffstat (limited to 'packages/website/ts/components')
-rw-r--r-- | packages/website/ts/components/portal/portal.tsx | 10 | ||||
-rw-r--r-- | packages/website/ts/components/top_bar/top_bar.tsx | 1 |
2 files changed, 5 insertions, 6 deletions
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<PortalProps, PortalState> { 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) { diff --git a/packages/website/ts/components/top_bar/top_bar.tsx b/packages/website/ts/components/top_bar/top_bar.tsx index 85578b116..fac6c131f 100644 --- a/packages/website/ts/components/top_bar/top_bar.tsx +++ b/packages/website/ts/components/top_bar/top_bar.tsx @@ -13,7 +13,6 @@ import { ProviderDisplay } from 'ts/components/top_bar/provider_display'; import { TopBarMenuItem } from 'ts/components/top_bar/top_bar_menu_item'; import { DropDown } from 'ts/components/ui/drop_down'; import { Dispatcher } from 'ts/redux/dispatcher'; -import { zIndex } from 'ts/style/z_index'; import { Deco, Key, ProviderType, WebsiteLegacyPaths, WebsitePaths } from 'ts/types'; import { constants } from 'ts/utils/constants'; import { Translate } from 'ts/utils/translate'; |