Skip to content

Commit 39eb076

Browse files
committed
Do not use array index for key
1 parent 2768b2c commit 39eb076

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/components/UI/Rewards/components/Tabs/OverviewTab/WaysToEarn/SwapSupportedNetworksSection.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ export const SwapSupportedNetworksSection = () => {
131131
flexDirection={BoxFlexDirection.Row}
132132
twClassName="flex-wrap -mx-2 -my-1"
133133
>
134-
{supportedNetworks.map((network, index) => (
135-
<Box key={index} twClassName="basis-1/2 px-2 py-1">
134+
{supportedNetworks.map((network) => (
135+
<Box key={network.chainId} twClassName="basis-1/2 px-2 py-1">
136136
<SwapSupportedNetworkItem network={network} />
137137
</Box>
138138
))}

0 commit comments

Comments
 (0)