Fix key of the component
This commit is contained in:
parent
e8793a4149
commit
a0d864a8ae
|
@ -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>
|
||||
: ''
|
||||
|
|
Loading…
Reference in New Issue