diff --git a/packages/maskbook/src/plugins/Wallet/hooks/useAssetsMerged.ts b/packages/maskbook/src/plugins/Wallet/hooks/useAssetsMerged.ts index 5fb27962884d..f7272df4f8f2 100644 --- a/packages/maskbook/src/plugins/Wallet/hooks/useAssetsMerged.ts +++ b/packages/maskbook/src/plugins/Wallet/hooks/useAssetsMerged.ts @@ -12,6 +12,7 @@ import type { Asset } from '../types' export function useAssetsMerged(...listOfTokens: Asset[][]) { const chainId = useChainId() const NATIVE_TOKEN_ADDRESS = useConstant(CONSTANTS, 'NATIVE_TOKEN_ADDRESS') + if (!NATIVE_TOKEN_ADDRESS) return [] return uniqBy( listOfTokens.flatMap((x) => x), (x) => `${x.chain}_${formatEthereumAddress(x.token.address)}`,