From ccbc0adc06398b3a02e4e97c9c6d76009e6fab21 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe Date: Tue, 7 Feb 2023 10:14:23 -0600 Subject: [PATCH] Merge pull request #11705 from overleaf/jel-free-plan-dash [web] Fix displaying free plan React dash GitOrigin-RevId: 5759ad3489bf43d2a7db57b050fd5cb4aa360140 --- .../subscription/context/subscription-dashboard-context.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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])