Skip to content

Commit

Permalink
Update packages/assets-controllers/src/TokenDetectionController.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Jongsun Suh <jongsun.suh@icloud.com>
  • Loading branch information
jiexi and MajorLift authored Feb 20, 2024
1 parent bfed958 commit d8395af
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ export class TokenDetectionController extends StaticIntervalPollingController<
const { tokensChainsCache } = this.messagingSystem.call(
'TokenListController:getState',
);
const tokenList = tokensChainsCache[chainId]?.data || {};
const tokenList = tokensChainsCache[chainId]?.data ?? {};

const tokenListUsed = isTokenDetectionInactiveInMainnet
? STATIC_MAINNET_TOKEN_LIST
Expand Down

0 comments on commit d8395af

Please sign in to comment.