Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/components/ContributionHeatmap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@
commits.forEach((c) => {
if (c.repo) reposSet.add(c.repo);
});
return Array.from(reposSet).sort();
return Array.from(reposSet).sort((a, b) => a - b);

Check failure on line 321 in src/components/ContributionHeatmap.tsx

View workflow job for this annotation

GitHub Actions / Type check

The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.

Check failure on line 321 in src/components/ContributionHeatmap.tsx

View workflow job for this annotation

GitHub Actions / Type check

The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
}, [commits]);

// Extract unique languages
Expand All @@ -329,7 +329,7 @@
if (l.name) langsSet.add(l.name);
});
});
return Array.from(langsSet).sort();
return Array.from(langsSet).sort((a, b) => a - b);

Check failure on line 332 in src/components/ContributionHeatmap.tsx

View workflow job for this annotation

GitHub Actions / Type check

The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.

Check failure on line 332 in src/components/ContributionHeatmap.tsx

View workflow job for this annotation

GitHub Actions / Type check

The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.
}, [reposData]);

// Map each repo to its languages for quick lookup
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useRealtimeSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@

// Stabilise `events` so an inline array definition (e.g. `["INSERT", "DELETE"]`)
// doesn't cause the effect to re-run on every render.
const eventsKey = [...events].sort().join(",");
const eventsKey = [...events].sort((a, b) => a - b).join(",");

Check failure on line 100 in src/hooks/useRealtimeSync.ts

View workflow job for this annotation

GitHub Actions / Type check

The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.

Check failure on line 100 in src/hooks/useRealtimeSync.ts

View workflow job for this annotation

GitHub Actions / Type check

The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.

useEffect(() => {
const supabase = getSupabaseClient();
Expand Down
Loading