Skip to content

Commit

Permalink
chore: destructure chainId from networkConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
micaelae committed Oct 9, 2024
1 parent 7b05ddc commit bf57b5c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,19 @@ export const AssetPickerModalNetwork = ({
height={BlockSize.Full}
>
{networksList.map((networkConfig) => {
const { name } = networkConfig;
const { name, chainId } = networkConfig;
return (
<NetworkListItem
key={networkConfig.chainId}
key={chainId}
name={name}
selected={selectedNetwork?.chainId === networkConfig.chainId}
selected={selectedNetwork?.chainId === chainId}
onClick={() => {
onNetworkChange(networkConfig);
onBack();
}}
iconSrc={
CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP[
networkConfig.chainId as keyof typeof CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP
chainId as keyof typeof CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP
]
}
focus={false}
Expand Down

0 comments on commit bf57b5c

Please sign in to comment.