Skip to content

Commit 8ddc490

Browse files
CopilotAdez017
andcommitted
Change default leaderboard filter from 'all time' to 'weekly'
Co-authored-by: Adez017 <[email protected]>
1 parent d7fd5a2 commit 8ddc490

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/statsProvider.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ export function CommunityStatsProvider({
176176
const [lastUpdated, setLastUpdated] = useState<Date | null>(null);
177177

178178
// Time filter state
179-
const [currentTimeFilter, setCurrentTimeFilter] = useState<TimeFilter>("all");
179+
const [currentTimeFilter, setCurrentTimeFilter] =
180+
useState<TimeFilter>("week");
180181

181182
// Enhanced state for leaderboard data (stores all contributors with full PR history)
182183
const [allContributors, setAllContributors] = useState<FullContributor[]>([]);

0 commit comments

Comments
 (0)