diff --git a/packages/console/src/pages/TenantSettings/Subscription/index.tsx b/packages/console/src/pages/TenantSettings/Subscription/index.tsx index 4c37bc2d2..07232ee82 100644 --- a/packages/console/src/pages/TenantSettings/Subscription/index.tsx +++ b/packages/console/src/pages/TenantSettings/Subscription/index.tsx @@ -34,17 +34,19 @@ function Subscription() { useEffect(() => { if (isCloud) { onCurrentSubscriptionUpdated(); - - if (periodicUsage) { - updateTenant(currentTenantId, { - usage: { - activeUsers: periodicUsage.mauLimit, - tokenUsage: periodicUsage.tokenLimit, - }, - }); - } } - }, [currentTenantId, onCurrentSubscriptionUpdated, periodicUsage, updateTenant]); + }, [onCurrentSubscriptionUpdated]); + + useEffect(() => { + if (isCloud && periodicUsage) { + updateTenant(currentTenantId, { + usage: { + activeUsers: periodicUsage.mauLimit, + tokenUsage: periodicUsage.tokenLimit, + }, + }); + } + }, [currentTenantId, periodicUsage, updateTenant]); if (isLoading) { return ;