1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

change unique key on list to the atual network name instead index

This commit is contained in:
Max Berman 2020-01-15 14:07:16 +01:00
parent 6290029c2a
commit 05d5f466ee

View File

@ -73,7 +73,7 @@ export function NetworkSwitcher() {
<ul className={styles.networkList}>
{Object.keys(CONNECTIONS).map((networkName, i) => (
<li
key={i}
key={networkName}
className={
network.toUpperCase() === networkName.toUpperCase()
? styles.selected