diff --git a/app/financials/[sponsorId]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx b/app/financials/[sponsorId]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx index 5201b40ee..f8271c650 100644 --- a/app/financials/[sponsorId]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx +++ b/app/financials/[sponsorId]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx @@ -27,7 +27,7 @@ export function FinancialColumnChart() { const dateKernelPort = bootstrap.getDateKernelPort(); const moneyKernelPort = bootstrap.getMoneyKernelPort(); const { sponsorId = "" } = useParams<{ sponsorId: string }>(); - const [rangeType, setRangeType] = useState(DateRangeType.LAST_WEEK); + const [rangeType, setRangeType] = useState(DateRangeType.LAST_YEAR); const { fromDate, toDate } = useMemo(() => { const { from, to } = dateKernelPort.getRangeOfDates(rangeType); diff --git a/app/manage-projects/[projectSlug]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx b/app/manage-projects/[projectSlug]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx index 6b95b8bef..8e917b2dc 100644 --- a/app/manage-projects/[projectSlug]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx +++ b/app/manage-projects/[projectSlug]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx @@ -27,7 +27,7 @@ export function FinancialColumnChart() { const dateKernelPort = bootstrap.getDateKernelPort(); const moneyKernelPort = bootstrap.getMoneyKernelPort(); const { projectSlug = "" } = useParams<{ projectSlug: string }>(); - const [rangeType, setRangeType] = useState(DateRangeType.LAST_WEEK); + const [rangeType, setRangeType] = useState(DateRangeType.LAST_YEAR); const { fromDate, toDate } = useMemo(() => { const { from, to } = dateKernelPort.getRangeOfDates(rangeType); diff --git a/app/my-dashboard/_sections/financial-section/_components/financial-column-chart/financial-column-chart.tsx b/app/my-dashboard/_sections/financial-section/_components/financial-column-chart/financial-column-chart.tsx index eebb8a007..278726225 100644 --- a/app/my-dashboard/_sections/financial-section/_components/financial-column-chart/financial-column-chart.tsx +++ b/app/my-dashboard/_sections/financial-section/_components/financial-column-chart/financial-column-chart.tsx @@ -24,7 +24,7 @@ import { useFinancialColumnChart } from "./financial-column-chart.hooks"; export function FinancialColumnChart() { const { t } = useTranslation(); - const [rangeType, setRangeType] = useState(DateRangeType.LAST_WEEK); + const [rangeType, setRangeType] = useState(DateRangeType.LAST_YEAR); const rangeMenu = useRangeSelectOptions(); const { githubUserId } = useAuthUser(); diff --git a/app/programs/[programId]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx b/app/programs/[programId]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx index 2b276a81f..cc51ad508 100644 --- a/app/programs/[programId]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx +++ b/app/programs/[programId]/_sections/financial-section/components/financial-column-chart/financial-column-chart.tsx @@ -27,7 +27,7 @@ export function FinancialColumnChart() { const dateKernelPort = bootstrap.getDateKernelPort(); const moneyKernelPort = bootstrap.getMoneyKernelPort(); const { programId = "" } = useParams<{ programId: string }>(); - const [rangeType, setRangeType] = useState(DateRangeType.LAST_WEEK); + const [rangeType, setRangeType] = useState(DateRangeType.LAST_YEAR); const { fromDate, toDate } = useMemo(() => { const { from, to } = dateKernelPort.getRangeOfDates(rangeType); diff --git a/shared/panels/project-sidepanel/project-sidepanel.tsx b/shared/panels/project-sidepanel/project-sidepanel.tsx index a376b91c1..5d96b3e86 100644 --- a/shared/panels/project-sidepanel/project-sidepanel.tsx +++ b/shared/panels/project-sidepanel/project-sidepanel.tsx @@ -38,7 +38,7 @@ export function ProjectSidepanel() { canGoBack = false, } = useSinglePanelData(name) ?? { projectId: "" }; const dateKernelPort = bootstrap.getDateKernelPort(); - const [rangeType, setRangeType] = useState(DateRangeType.LAST_WEEK); + const [rangeType, setRangeType] = useState(DateRangeType.LAST_YEAR); const { fromDate, toDate } = useMemo(() => { const { from, to } = dateKernelPort.getRangeOfDates(rangeType);