Skip to content

Commit

Permalink
Contributions Count not Updating #303
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan20-10 authored Nov 8, 2024
1 parent aa9ac03 commit 5009230
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/scripts/contributor.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ async function fetchData() {
// Render stats
function renderStats(repoStats, contributors) {
const statsGrid = document.getElementById('statsGrid');
const totalContributions = contributors?.reduce((sum,contributor) => sum + contributor.contributions,0) || 0;
const totalContributions = contributorsCount?.reduce((sum, contributor) => sum + contributor.contributions, 0) || 0;
const stats = [
{ label: 'Contributors', value: contributors.length, icon: 'users' },
{ label: 'Contributors', value: contributorsCount.length, icon: 'users' },
{ label: 'Total Contributions', value: totalContributions, icon: 'git-commit' },
{ label: 'GitHub Stars', value: repoStats.stargazers_count || 0, icon: 'star' },
{ label: 'Forks', value: repoStats.forks_count || 0, icon: 'git-branch' }
Expand Down

0 comments on commit 5009230

Please sign in to comment.