diff options
author | fragosti <francesco.agosti93@gmail.com> | 2018-06-27 04:43:25 +0800 |
---|---|---|
committer | fragosti <francesco.agosti93@gmail.com> | 2018-06-27 04:43:25 +0800 |
commit | 26edec57732185da1d3de52f4a0e9184196eb0a5 (patch) | |
tree | df8b802bea20fd9059db55abcc62de7034e5a1cb /packages/website/ts | |
parent | d72e06842f2c561ef27d0adba6f2b4a51d38a87a (diff) | |
download | dexon-0x-contracts-26edec57732185da1d3de52f4a0e9184196eb0a5.tar.gz dexon-0x-contracts-26edec57732185da1d3de52f4a0e9184196eb0a5.tar.zst dexon-0x-contracts-26edec57732185da1d3de52f4a0e9184196eb0a5.zip |
Fix bug where we are requesting tokens on a different network
Diffstat (limited to 'packages/website/ts')
-rw-r--r-- | packages/website/ts/components/portal/portal.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/components/portal/portal.tsx b/packages/website/ts/components/portal/portal.tsx index bc8705475..df313415d 100644 --- a/packages/website/ts/components/portal/portal.tsx +++ b/packages/website/ts/components/portal/portal.tsx @@ -152,7 +152,7 @@ export class Portal extends React.Component<PortalProps, PortalState> { } public componentDidUpdate(prevProps: PortalProps): void { if (!prevProps.blockchainIsLoaded && this.props.blockchainIsLoaded) { - const trackedTokenAddresses = _.keys(this.state.trackedTokenStateByAddress); + const trackedTokenAddresses = _.map(this._getCurrentTrackedTokens(), token => token.address); // tslint:disable-next-line:no-floating-promises this._fetchBalancesAndAllowancesAsync(trackedTokenAddresses); } |