Skip to content

Commit

Permalink
fix: correctly pass current and goal values to project card progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Keeqler committed Oct 10, 2024
1 parent 408772e commit 3737503
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion components/ProjectCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,14 @@ const ProjectCard: React.FC<ProjectCardProps> = ({ project, customImageStyles })
</span>
</div>

<Progress current={20000} goal={10000} />
<Progress
current={
project.totalDonationsBTCInFiat +
project.totalDonationsXMRInFiat +
project.totalDonationsFiat
}
goal={project.goal}
/>
</figcaption>
</figure>
</Link>
Expand Down

0 comments on commit 3737503

Please sign in to comment.