diff --git a/client/src/Reports/useDonationStatistics.ts b/client/src/Reports/useDonationStatistics.ts index 80caaa8a..5ff2d257 100644 --- a/client/src/Reports/useDonationStatistics.ts +++ b/client/src/Reports/useDonationStatistics.ts @@ -35,8 +35,6 @@ const useDonationStatistics = () => { const getReportForDateRange = ( filteredData: IDonation[], ) => { - // const filteredData = filterDonationsByDateRange(startDate, endDate); - if (filteredData.length > 0 && donorsData.length > 0) { const total_donated = filteredData.reduce( (total, donation) => total + donation.amount, diff --git a/client/src/components/buttons/SearchDonorsButton.tsx b/client/src/components/buttons/SearchDonorsButton.tsx index 63e2b82e..302b3b0c 100644 --- a/client/src/components/buttons/SearchDonorsButton.tsx +++ b/client/src/components/buttons/SearchDonorsButton.tsx @@ -20,7 +20,7 @@ import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { DatePicker } from '@mui/x-date-pickers/DatePicker'; import dayjs, { Dayjs } from 'dayjs'; import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; -import { useData } from '../../util/api'; +import { useData } from '../../util/api'; interface SearchDonorsButtonProps { onConfirm: (filteredDonors: DonorInfo[]) => void;