Skip to content

Commit 8db9c92

Browse files
fix: update key prop in TopContributors component to use contributor.login
1 parent 72976d3 commit 8db9c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/projects.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ export const TopContributors = ({ contributors }: TopContributorsProps) => {
138138
<div className="tw-grid-cols-2 tw-space-y-1 tw-text-secondary md:tw-grid-cols-1">
139139
{contributors.map((contributor) => (
140140
<Link
141-
key={contributor.id}
141+
key={contributor.login}
142142
href={contributor.html_url}
143143
target="_blank"
144144
className="tw-flex tw-min-w-56 tw-gap-2 tw-rounded-md tw-border-2 tw-border-secondary tw-border-opacity-35 tw-bg-secondary tw-bg-opacity-20 tw-px-2 tw-pt-1 hover:tw-cursor-pointer hover:tw-bg-opacity-100 hover:tw-text-white"

0 commit comments

Comments
 (0)