Skip to content

Commit

Permalink
Fix chart expanded state using chain name instead of ID to index into…
Browse files Browse the repository at this point in the history
… asset networks object
  • Loading branch information
jinchung committed Jan 10, 2025
1 parent fb0c111 commit 219aed8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/expanded-state/asset/ChartExpandedState.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function ChartExpandedState({ asset }) {
chainId: asset.chainId,
network: asset.network,
address: asset.address,
mainnetAddress: asset?.networks?.[useBackendNetworksStore.getState().getChainsName()[ChainId.mainnet]]?.address,
mainnetAddress: asset?.networks?.[ChainId.mainnet]?.address,
}
: asset;
}, [asset, genericAsset, hasBalance]);
Expand Down

0 comments on commit 219aed8

Please sign in to comment.