Fix key of the component

This commit is contained in:
Richard Ramos 2018-07-13 11:58:38 -04:00
parent e8793a4149
commit a0d864a8ae
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class ShipList extends Component {
return <div id={id}>
<h3>{title}</h3>
{ wallet ? <EnableSales isSubmitting={this.state.isSubmitting} handleChange={this.enableMarketplace} salesEnabled={this.state.salesEnabled} /> : ''}
{ list.map((ship, i) => <Ship onAction={onAction} wallet={wallet} salesEnabled={salesEnabled} key={i} marketplace={marketplace} {...ship} />) }
{ list.map((ship, i) => <Ship onAction={onAction} wallet={wallet} salesEnabled={salesEnabled} key={ship.id} marketplace={marketplace} {...ship} />) }
{ list.length == 0
? <p>No ships available</p>
: ''