Skip to content

Commit

Permalink
fix: rounds correctly Donated money value in Statistics section
Browse files Browse the repository at this point in the history
  • Loading branch information
kzhecheva committed Oct 17, 2023
1 parent 39ec367 commit 7bd7d74
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default function Statistics() {

const donatedMoney = fromMoney(totalDonatedMoney?.total || 0)
const unit = donatedMoney.toString().split('.')[0]
const fraction = donatedMoney.toString().split('.')[1]
const fraction = donatedMoney?.toFixed(2).toString().split('.')[1]

const sections: { value?: number; message: string }[] = [
{
Expand Down

0 comments on commit 7bd7d74

Please sign in to comment.