aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/components/portal/portal.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-26 07:26:34 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-26 07:26:34 +0800
commitc4e2dcafa4bd5f4b905680e2c1b80d6ddb6ab6fb (patch)
tree34653ddbd6fa97eb522f827c0b488f91f3038595 /packages/website/ts/components/portal/portal.tsx
parent53e2cda4c8d6698b5c4b69f510ad8764cb089306 (diff)
downloaddexon-0x-contracts-c4e2dcafa4bd5f4b905680e2c1b80d6ddb6ab6fb.tar.gz
dexon-0x-contracts-c4e2dcafa4bd5f4b905680e2c1b80d6ddb6ab6fb.tar.zst
dexon-0x-contracts-c4e2dcafa4bd5f4b905680e2c1b80d6ddb6ab6fb.zip
Have basic network switching working
Diffstat (limited to 'packages/website/ts/components/portal/portal.tsx')
-rw-r--r--packages/website/ts/components/portal/portal.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx
index 4166fde53..58acb435e 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) {