aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-31 03:11:18 +0800
committerFabio Berger <me@fabioberger.com>2018-01-31 03:11:18 +0800
commit144a507a2e0e341e8c8b97f67a25e1283ebc3687 (patch)
tree1b4200a13257b8721ebc2c6daf3cfb10b4c4cf2e /packages/website/ts
parent5019c5194044f9ab2631090365e09083044a730d (diff)
downloaddexon-sol-tools-144a507a2e0e341e8c8b97f67a25e1283ebc3687.tar.gz
dexon-sol-tools-144a507a2e0e341e8c8b97f67a25e1283ebc3687.tar.zst
dexon-sol-tools-144a507a2e0e341e8c8b97f67a25e1283ebc3687.zip
Fix bug where we were return undefined instead of the empty object
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/local_storage/tracked_token_storage.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/website/ts/local_storage/tracked_token_storage.ts b/packages/website/ts/local_storage/tracked_token_storage.ts
index f92dd6298..f865f8109 100644
--- a/packages/website/ts/local_storage/tracked_token_storage.ts
+++ b/packages/website/ts/local_storage/tracked_token_storage.ts
@@ -48,7 +48,7 @@ export const trackedTokenStorage = {
const trackedTokensByUserAddress = JSON.parse(trackedTokensJSONString);
const trackedTokensByNetworkId = trackedTokensByUserAddress[userAddress];
if (_.isUndefined(trackedTokensByNetworkId)) {
- return undefined;
+ return trackedTokensByAddress;
}
const trackedTokens = trackedTokensByNetworkId[networkId];
_.each(trackedTokens, (trackedToken: Token) => {