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 8, 2024
1 parent b7aa379 commit 8d4ad97
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 8d4ad97

Please sign in to comment.