Skip to content

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

chore: refactor of project usage charts to use client-side data timestamp filling

TzeYiing7d5ab47f2064
diff --git a/studio/components/interfaces/Home/ProjectUsageSection.tsx b/studio/components/interfaces/Home/ProjectUsageSection.tsx
index 932f22577be..2da74e27413 100644
--- a/studio/components/interfaces/Home/ProjectUsageSection.tsx
+++ b/studio/components/interfaces/Home/ProjectUsageSection.tsx
@@ -43,7 +43,7 @@ const ProjectUsageSection: FC = observer(({}) => {
<IconLoader className="animate-spin" size={14} />
<p className="text-sm">Retrieving project usage statistics</p>
</div>
- ) : hasProjectData ? (
+ ) : true ? (
<ProjectUsage />
) : (
<NewProjectPanel />
diff --git a/studio/data/analytics/project-log-stats-query.ts b/studio/data/analytics/project-log-stats-query.ts
index 023b1c0cfdb..db294c11124 100644
--- a/studio/data/analytics/project-log-stats-query.ts
+++ b/studio/data/analytics/project-log-stats-query.ts
@@ -44,7 +44,7 @@ export async function getProjectLogStats(
return response as ProjectLogStatsResponse
}
-export type ProjectLogStatsData = Awaited<ReturnType<typeof getProjectLogStats>>
+export type ProjectLogStatsData = Awaited<ReturnType<ProjectLogStatsResponse>>
export type ProjectLogStatsError = unknown
export const useProjectLogStatsQuery = <TData = ProjectLogStatsData>(