From 363f682a5d7f76576f808a47bfb68f2ce4a49a2d Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Mon, 10 Jul 2023 14:25:55 +0800 Subject: [PATCH] Fix --- studio/components/interfaces/Organization/Usage/Usage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/studio/components/interfaces/Organization/Usage/Usage.tsx b/studio/components/interfaces/Organization/Usage/Usage.tsx index 9dc4d88ffc2..aeb0ab2933e 100644 --- a/studio/components/interfaces/Organization/Usage/Usage.tsx +++ b/studio/components/interfaces/Organization/Usage/Usage.tsx @@ -38,7 +38,9 @@ const Usage = () => { setSelectedProjectRef(projectRef) } } - }, [projectRef, isSuccess, orgProjects]) + // [Joshen] Since we're already looking at isSuccess + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [projectRef, isSuccess]) const billingCycleStart = dayjs.unix(subscription?.current_period_start ?? 0).utc() const billingCycleEnd = dayjs.unix(subscription?.current_period_end ?? 0).utc()