Skip to content

Commit

Permalink
Use peerInfo.senderId instead of peerInfo.name to avoid key duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
asiia-trilitech committed Mar 13, 2024
1 parent c1bc087 commit 428df22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/beacon/BeaconPeers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const PeersDisplay = ({
}) => (
<Box>
{peerInfos.map(peerInfo => (
<Fragment key={peerInfo.name}>
<Fragment key={peerInfo.senderId}>
<Divider />
<PeerRow onRemove={() => removePeer(peerInfo)} peerInfo={peerInfo} />
</Fragment>
Expand Down

0 comments on commit 428df22

Please sign in to comment.