Skip to content

Commit

Permalink
Average donation needs to consider correct total
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Dec 14, 2023
1 parent 620104e commit 8e65b4b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/commands/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ const statsCommand: Command<CtxWithEnv> = {

const collections = bold(number(stats.collections.redeemed));
const average = bold(
money("£", stats.raised.yogscast / stats.donations.count),
money(
"£",
(stats.raised.yogscast + stats.raised.fundraisers) /
stats.donations.count,
),
);

const perHourDonations = bold(
Expand Down

0 comments on commit 8e65b4b

Please sign in to comment.