Skip to content

Commit 0e14e54

Browse files
committed
refactor: rename bounty-card key for clarity
1 parent 5273c62 commit 0e14e54

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/components/list/Bounty.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ interface BountyListProps {
3131
* @returns {ReactElement}
3232
*/
3333
export default function BountyList({ bounties = [], referrals = [] }: BountyListProps): ReactElement {
34-
const loading = useSelector((state: IRootState) => state.bounties.isLoading)
34+
const loading = useSelector((state: IRootState) => state.bounties.isLoading);
3535
return (
3636
<div>
3737
{bounties && !loading ? (
@@ -40,12 +40,14 @@ export default function BountyList({ bounties = [], referrals = [] }: BountyList
4040
<Referral referral={referral} key={referral.name} />
4141
))}
4242
{bounties.map((bounty, index) => (
43-
<Bounty bounty={bounty} key={`${index}-${bounty.id}`} />
43+
<Bounty bounty={bounty} key={`bounty-${index}-${bounty.id}`} />
4444
))}
4545
</div>
46-
) : <div className="h-24 sm:h-48 grid place-items-center">
47-
<Loader />
48-
</div>}
46+
) : (
47+
<div className="h-24 sm:h-48 grid place-items-center">
48+
<Loader />
49+
</div>
50+
)}
4951
</div>
5052
);
5153
}

0 commit comments

Comments
 (0)