diff --git a/studio/components/interfaces/Home/ProjectUsage.tsx b/studio/components/interfaces/Home/ProjectUsage.tsx index 1e514f86353..7b3c9deb159 100644 --- a/studio/components/interfaces/Home/ProjectUsage.tsx +++ b/studio/components/interfaces/Home/ProjectUsage.tsx @@ -231,7 +231,6 @@ const ProjectUsage: FC = ({ project }) => { isLoading={!charts && !error ? true : false} onBarClick={(v) => handleBarClick(v, '/realtime')} /> -
diff --git a/studio/components/to-be-cleaned/Usage.tsx b/studio/components/to-be-cleaned/Usage.tsx index f442d03903b..ef03f7914ca 100644 --- a/studio/components/to-be-cleaned/Usage.tsx +++ b/studio/components/to-be-cleaned/Usage.tsx @@ -272,6 +272,10 @@ export const ProjectUsageMinimal: FC = ({ projectRef, subscription_id, filt const { data: stats, error: usageError } = useSWR(`${API_URL}/projects/${projectRef}/usage`, get) const { subscription, isLoading: loading, error } = useProjectSubscription(projectRef) + if (subscription?.tier?.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.PAYG) { + return <> + } + const tier = subscription?.tier?.supabase_prod_id === PRICING_TIER_PRODUCT_IDS.PRO ? 'pro' : 'free'