Skip to content

Commit 9cf7303

Browse files
authored
use key for list of components (#3227)
* use key for list of components * address review * actually address feedback
1 parent bb34d62 commit 9cf7303

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

wormhole-connect/src/views/v2/Bridge/AssetPicker/ChainList.tsx

+1-2
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,8 @@ const ChainList = (props: Props) => {
115115
return (
116116
<List component={Stack} direction="row">
117117
{topChains.map((chain: ChainConfig) => (
118-
<Tooltip title={chain.displayName}>
118+
<Tooltip key={chain.key} title={chain.displayName}>
119119
<ListItemButton
120-
key={chain.key}
121120
selected={selectedChainConfig?.key === chain.key}
122121
className={classes.chainButton}
123122
onClick={() => onChainSelect(chain.key)}

0 commit comments

Comments
 (0)