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> </Row>
<Hairline /> <Hairline />
<Block margin="md" padding="md"> <Block margin="md" padding="md">
{ owners.map((x, index) => ( {owners.map((x, index) => (
<Row key={`owner${(index)}`} className={classes.owner}> <Row key={owners[index].address} className={classes.owner}>
<Col xs={4}> <Col xs={4}>
<Field <Field
className={classes.name} className={classes.name}

View File

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