Skip to content

Commit

Permalink
reduce statistics size by asking only one donation from history (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
quantum-grit authored Jun 19, 2023
1 parent 62b3a46 commit 5787d32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
export default function Statistics() {
const { t } = useTranslation('index')
const { data: campaigns } = useCampaignList()
const { data: totalDonations } = useCampaignDonationHistory()
const { data: totalDonations } = useCampaignDonationHistory(undefined, 0, 1) //ask only for 1 item to get the total count
const { data: donorsCount } = useDonatedUsersCount()
const { data: totalDonatedMoney } = getTotalDonatedMoney()

Expand Down

0 comments on commit 5787d32

Please sign in to comment.