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

[web] Fix displaying free plan React dash

GitOrigin-RevId: 5759ad3489bf43d2a7db57b050fd5cb4aa360140
This commit is contained in:
Jessica Lawshe 2023-02-07 10:14:23 -06:00 committed by Copybot
parent f3d055af86
commit ccbc0adc06

View file

@ -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])