@@ -266,7 +266,7 @@ const DashboardContent: React.FC = () => {
266
266
setLeaderboardError ( null ) ;
267
267
268
268
try {
269
- console . log ( "🔄 Fetching leaderboard data from RecodeHive GitHub API..." ) ;
269
+
270
270
271
271
// Fetch all repositories from RecodeHive organization
272
272
const reposResponse = await fetchWithRateLimit (
@@ -278,11 +278,11 @@ const DashboardContent: React.FC = () => {
278
278
}
279
279
280
280
const repos = await reposResponse . json ( ) ;
281
- console . log (
282
- "📊 GitHub Repos Response:" ,
283
- repos . length ,
284
- "repositories found"
285
- ) ;
281
+ // console.log(
282
+ // "📊 GitHub Repos Response:",
283
+ // repos.length,
284
+ // "repositories found"
285
+ // );
286
286
287
287
if ( ! Array . isArray ( repos ) ) {
288
288
throw new Error ( "Invalid GitHub API response format" ) ;
@@ -307,7 +307,7 @@ const DashboardContent: React.FC = () => {
307
307
. sort ( ( a , b ) => b . stargazers_count - a . stargazers_count )
308
308
. slice ( 0 , 10 ) ; // Limit to top 10 repos to reduce API calls
309
309
310
- console . log ( `📊 Processing top ${ topRepos . length } repositories...` ) ;
310
+ // console.log(`📊 Processing top ${topRepos.length} repositories...`);
311
311
312
312
// Fetch contributors for each repository with delay to avoid rate limits
313
313
for ( let i = 0 ; i < topRepos . length ; i ++ ) {
@@ -397,11 +397,11 @@ const DashboardContent: React.FC = () => {
397
397
. sort ( ( a , b ) => b . contributions - a . contributions ) // Sort by contributions descending
398
398
. map ( ( item , index ) => ( { ...item , rank : index + 1 } ) ) ; // Update ranks after sorting
399
399
400
- console . log (
401
- "✅ Successfully processed RecodeHive contributors data:" ,
402
- transformedData . length ,
403
- "contributors"
404
- ) ;
400
+ // console.log(
401
+ // "✅ Successfully processed RecodeHive contributors data:",
402
+ // transformedData.length,
403
+ // "contributors"
404
+ // );
405
405
setLeaderboardData ( transformedData ) ;
406
406
} catch ( error ) {
407
407
console . error ( "❌ Error fetching RecodeHive contributors data:" , error ) ;
0 commit comments