Skip to content

Commit

Permalink
add truncation for donation goal
Browse files Browse the repository at this point in the history
  • Loading branch information
stCarolas committed Jun 20, 2024
1 parent 794df0f commit 95b2c6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/DonationGoal/DonationGoal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,10 @@ export default function DonationGoal({}) {
.replaceAll("<currency>", "RUB")
.replaceAll(
"<proportion>",
(goal.accumulatedAmount.major / goal.requiredAmount.major) *
Math.trunc(
(goal.accumulatedAmount.major / goal.requiredAmount.major) *
100,
),
)}
</div>
</div>
Expand Down

0 comments on commit 95b2c6a

Please sign in to comment.