Browse Source

Fix duplicate keys in apps list

master
meriadec 7 years ago
parent
commit
f6c6b10e5f
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 6
      src/components/ManagerPage/AppsList.js

6
src/components/ManagerPage/AppsList.js

@ -39,6 +39,10 @@ type LedgerApp = {
version: string, version: string,
icon: string, icon: string,
app: Object, app: Object,
bolos_version: {
min: number,
max: number,
},
} }
type Props = { type Props = {
@ -120,7 +124,7 @@ class AppsList extends PureComponent<Props, State> {
<List> <List>
{this.state.appsList.map(c => ( {this.state.appsList.map(c => (
<ManagerApp <ManagerApp
key={c.name} key={`${c.name}_${c.version}_${c.bolos_version.min}`}
name={c.name} name={c.name}
version={`Version ${c.version}`} version={`Version ${c.version}`}
icon={ICONS_FALLBACK[c.icon] || c.icon} icon={ICONS_FALLBACK[c.icon] || c.icon}

Loading…
Cancel
Save