We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1981061 commit 5ecf93dCopy full SHA for 5ecf93d
app/profile/[login]/utils/contrib-group-and-sort.ts
@@ -16,7 +16,7 @@ export const groupAndSortContributions = (contributions: Contribution[]) => {
16
data: data.sort((a, b) => {
17
// Primary: mergedPrsCount DESC, Secondary: stargazersCount DESC
18
if (b.mergedPrsCount !== a.mergedPrsCount) {
19
- return b.mergedPrsCount - a.mergedPrsCount;
+ return (b.mergedPrsCount ?? 0) - (a.mergedPrsCount ?? 0);
20
}
21
22
return (b.repository?.stargazerCount ?? 0) - (a.repository?.stargazerCount ?? 0);
0 commit comments