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:
parent
6290029c2a
commit
05d5f466ee
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user