Skip to content

Commit

Permalink
Merge branch 'feat/portfolio-view' into fix/portfolio-view-testnetwor…
Browse files Browse the repository at this point in the history
…k-conversion-setting
  • Loading branch information
sahar-fehri authored Nov 21, 2024
2 parents 8057f13 + 3612ccb commit 117ae70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ui/pages/asset/components/token-asset.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ const TokenAsset = ({ token, chainId }: { token: Token; chainId: Hex }) => {
[key: `0x${string}`]: NetworkConfiguration;
} = useSelector(getAllEnabledNetworks);
// get the correct rpc url for the current token
const defaultIdx = allNetworks[chainId].defaultBlockExplorerUrlIndex;
const currentTokenBlockExplorer =
allNetworks[chainId]?.blockExplorerUrls?.[0];
allNetworks[chainId]?.blockExplorerUrls[defaultIdx ?? 0];

const { address: walletAddress } = useSelector(getSelectedInternalAccount);
const erc20TokensByChain = useSelector(selectERC20TokensByChain);

Expand Down

0 comments on commit 117ae70

Please sign in to comment.