Skip to content

Commit

Permalink
Use a combination of id + name as keys for networks in NetworkOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper committed Sep 27, 2024
1 parent 39ac159 commit 2933837
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const NetworkOptions = ({ hidden = false }: NetworkOptionsProps) => {
{chains
.filter(allowedNetwork => allowedNetwork.id === mainChainId)
.map(allowedNetwork => (
<li key={allowedNetwork.id} className={hidden ? "hidden" : ""}>
<li key={`${allowedNetwork.id}-${allowedNetwork.name}`} className={hidden ? "hidden" : ""}>
<button
className="menu-item btn-sm !rounded-xl flex gap-3 py-3 whitespace-nowrap"
type="button"
Expand Down

0 comments on commit 2933837

Please sign in to comment.