Просмотр исходного кода

Merge pull request #11705 from overleaf/jel-free-plan-dash

[web] Fix displaying free plan React dash

GitOrigin-RevId: 5759ad3489bf43d2a7db57b050fd5cb4aa360140
Jessica Lawshe 3 лет назад
Родитель
Сommit
ccbc0adc06

+ 2 - 2
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])