Use index from BountyDerive (#4300)

This commit is contained in:
Ewa Kowalska 2020-12-30 11:14:49 +01:00 committed by GitHub
parent f62d501d86
commit 6d0a3f9484
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,13 +41,13 @@ function Bounties (): React.ReactElement {
empty={deriveBounties && t<string>('No open bounties')}
header={headerRef.current}
>
{deriveBounties && bestNumber && deriveBounties.map(({ bounty, description }, index) => (
{deriveBounties && bestNumber && deriveBounties.map(({ bounty, description, index }) => (
<Bounty
bestNumber={bestNumber}
bounty={bounty}
description={description}
index={index}
key={index}
key={index.toNumber()}
/>
))}
</Table>