Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

default chart to hourly

TzeYiingc76f55ded9af
diff --git a/studio/components/interfaces/Home/ProjectUsage.tsx b/studio/components/interfaces/Home/ProjectUsage.tsx
index 8169ed138d0..f9e510fbb13 100644
--- a/studio/components/interfaces/Home/ProjectUsage.tsx
+++ b/studio/components/interfaces/Home/ProjectUsage.tsx
@@ -34,7 +34,7 @@ interface Props {
const ProjectUsage: FC<Props> = ({ project }) => {
const logsTimestampFilter = useFlag('logsTimestampFilter')
const logsUsageChartIntervals = useFlag('logsUsageChartIntervals')
- const [interval, setInterval] = useState<string>('minutely')
+ const [interval, setInterval] = useState<string>('hourly')
const router = useRouter()
const { ref } = router.query
const { data, error }: any = useSWR(
@@ -46,7 +46,7 @@ const ProjectUsage: FC<Props> = ({ project }) => {
// { refreshInterval: isActive ? 3000 : 30000 }
)
const selectedInterval = logsUsageChartIntervals
- ? CHART_INTERVALS.find((i) => i.key === interval) || CHART_INTERVALS[0]
+ ? CHART_INTERVALS.find((i) => i.key === interval) || CHART_INTERVALS[1]
: CHART_INTERVALS[2]
const startDate = dayjs()
.subtract(selectedInterval.startValue, selectedInterval.startUnit)