aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-06-27 04:43:25 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-06-27 04:43:25 +0800
commit26edec57732185da1d3de52f4a0e9184196eb0a5 (patch)
treedf8b802bea20fd9059db55abcc62de7034e5a1cb /packages/website
parentd72e06842f2c561ef27d0adba6f2b4a51d38a87a (diff)
downloaddexon-sol-tools-26edec57732185da1d3de52f4a0e9184196eb0a5.tar.gz
dexon-sol-tools-26edec57732185da1d3de52f4a0e9184196eb0a5.tar.zst
dexon-sol-tools-26edec57732185da1d3de52f4a0e9184196eb0a5.zip
Fix bug where we are requesting tokens on a different network
Diffstat (limited to 'packages/website')
-rw-r--r--packages/website/ts/components/portal/portal.tsx2
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);
}