Skip to content

Commit

Permalink
chore: ensure token parity with home page
Browse files Browse the repository at this point in the history
  • Loading branch information
BZahory committed Jun 6, 2024
1 parent 65d017c commit c1e77b0
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import { AssetType } from '../../../../../shared/constants/transaction';
import { useNftsCollections } from '../../../../hooks/useNftsCollections';
import ZENDESK_URLS from '../../../../helpers/constants/zendesk-url';
import {
getAllTokens,
getCurrentChainId,
getCurrentCurrency,
getNativeCurrencyImage,
Expand All @@ -49,7 +50,6 @@ import {
import {
getConversionRate,
getNativeCurrency,
getTokens,
} from '../../../../ducks/metamask/metamask';
import { useTokenTracker } from '../../../../hooks/useTokenTracker';
import { getTopAssets } from '../../../../ducks/swaps/swaps';
Expand Down Expand Up @@ -153,7 +153,10 @@ export function AssetPickerModal({
const shouldHideZeroBalanceTokens = useSelector(
getShouldHideZeroBalanceTokens,
);
const tokens = useSelector(getTokens, isEqual);

const detectedTokens = useSelector(getAllTokens);
const tokens = detectedTokens?.[chainId]?.[selectedAddress] ?? [];

const { tokensWithBalances } = useTokenTracker({
tokens,
address: selectedAddress,
Expand Down

0 comments on commit c1e77b0

Please sign in to comment.