Skip to content

Commit 5ecf93d

Browse files
committed
fix esling
1 parent 1981061 commit 5ecf93d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/profile/[login]/utils/contrib-group-and-sort.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const groupAndSortContributions = (contributions: Contribution[]) => {
1616
data: data.sort((a, b) => {
1717
// Primary: mergedPrsCount DESC, Secondary: stargazersCount DESC
1818
if (b.mergedPrsCount !== a.mergedPrsCount) {
19-
return b.mergedPrsCount - a.mergedPrsCount;
19+
return (b.mergedPrsCount ?? 0) - (a.mergedPrsCount ?? 0);
2020
}
2121

2222
return (b.repository?.stargazerCount ?? 0) - (a.repository?.stargazerCount ?? 0);

0 commit comments

Comments
 (0)