diff --git a/services/web/frontend/js/features/subscription/context/subscription-dashboard-context.tsx b/services/web/frontend/js/features/subscription/context/subscription-dashboard-context.tsx index 8611de86a5..a74fccd625 100644 --- a/services/web/frontend/js/features/subscription/context/subscription-dashboard-context.tsx +++ b/services/web/frontend/js/features/subscription/context/subscription-dashboard-context.tsx @@ -56,12 +56,12 @@ export function SubscriptionDashboardProvider({ const hasDisplayedSubscription = institutionMemberships?.length > 0 || personalSubscription || - managedGroupSubscriptions + managedGroupSubscriptions?.length > 0 useEffect(() => { if (!isRecurlyLoaded()) { setRecurlyLoadError(true) - } else { + } else if (recurlyApiKey) { recurly.configure(recurlyApiKey) } }, [recurlyApiKey, setRecurlyLoadError])