Refactor keys

This commit is contained in:
Germán Martínez 2019-06-13 20:01:39 +02:00
parent 8ff899dce1
commit 3f572ed043
2 changed files with 3 additions and 3 deletions

View File

@ -141,8 +141,8 @@ class OwnerListComponent extends React.PureComponent<Props, State> {
</Row>
<Hairline />
<Block margin="md" padding="md">
{ owners.map((x, index) => (
<Row key={`owner${(index)}`} className={classes.owner}>
{owners.map((x, index) => (
<Row key={owners[index].address} className={classes.owner}>
<Col xs={4}>
<Field
className={classes.name}

View File

@ -163,7 +163,7 @@ class ReviewComponent extends React.PureComponent<Props, State> {
</Block>
<Hairline />
{owners.map((x, index) => (
<React.Fragment key={`name${index}`}>
<React.Fragment key={owners[index].address}>
<Row className={classes.owner}>
<Col xs={1} align="center">
<Identicon address={owners[index]} diameter={32} />