Skip to content

Open source personal finance application

fix(useStatDate): change default intervals and range settings from week/month to day/14 days

Ilya Komichevc35cda02180f
diff --git a/app/components/date/useStatDate.ts b/app/components/date/useStatDate.ts
index 5ccb7137..252605f8 100644
--- a/app/components/date/useStatDate.ts
+++ b/app/components/date/useStatDate.ts
@@ -21,13 +21,13 @@ const queryParamsSchema = z.object({
const defaultParams: StatDateParams = {
customDate: false,
- intervalsBy: 'week',
+ intervalsBy: 'day',
intervalsDuration: 1,
intervalSelected: -1,
isShowMaxRange: false,
isSkipEmpty: false,
- rangeBy: 'month',
- rangeDuration: 3,
+ rangeBy: 'day',
+ rangeDuration: 14,
rangeOffset: 0,
}