diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-31 03:11:18 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-31 03:11:18 +0800 |
commit | 144a507a2e0e341e8c8b97f67a25e1283ebc3687 (patch) | |
tree | 1b4200a13257b8721ebc2c6daf3cfb10b4c4cf2e /packages/website | |
parent | 5019c5194044f9ab2631090365e09083044a730d (diff) | |
download | dexon-sol-tools-144a507a2e0e341e8c8b97f67a25e1283ebc3687.tar dexon-sol-tools-144a507a2e0e341e8c8b97f67a25e1283ebc3687.tar.gz dexon-sol-tools-144a507a2e0e341e8c8b97f67a25e1283ebc3687.tar.bz2 dexon-sol-tools-144a507a2e0e341e8c8b97f67a25e1283ebc3687.tar.lz dexon-sol-tools-144a507a2e0e341e8c8b97f67a25e1283ebc3687.tar.xz 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')
-rw-r--r-- | packages/website/ts/local_storage/tracked_token_storage.ts | 2 |
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) => { |