From 219aed8e1423bb28435494434e11d4d9591fab92 Mon Sep 17 00:00:00 2001 From: jinchung Date: Wed, 8 Jan 2025 10:36:06 -0500 Subject: [PATCH] Fix chart expanded state using chain name instead of ID to index into asset networks object --- src/components/expanded-state/asset/ChartExpandedState.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/expanded-state/asset/ChartExpandedState.js b/src/components/expanded-state/asset/ChartExpandedState.js index 4704316db9b..f42f50899e7 100644 --- a/src/components/expanded-state/asset/ChartExpandedState.js +++ b/src/components/expanded-state/asset/ChartExpandedState.js @@ -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]);