Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Su Yeon Lee authored and Su Yeon Lee committed Jul 25, 2024
1 parent c68e043 commit 7ccc1f7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions client/src/Reports/useDonationStatistics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/buttons/SearchDonorsButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7ccc1f7

Please sign in to comment.