don't load FYP endpoint if not Premium

This commit is contained in:
Thomas Zarebczan 2022-03-15 15:25:08 -04:00
parent 1e67a5cc7f
commit e62031f0a2
No known key found for this signature in database
GPG key ID: 767B41E1BB7346F2

View file

@ -96,8 +96,8 @@ export default function RecommendedPersonal(props: Props) {
// Fetch on mount:
React.useEffect(() => {
doFetchPersonalRecommendations();
}, []); // eslint-disable-line react-hooks/exhaustive-deps
hasMembership && doFetchPersonalRecommendations();
}, [hasMembership]); // eslint-disable-line react-hooks/exhaustive-deps
if ((!hasMembership && !process.env.ENABLE_WIP_FEATURES) || count < 1) {
return null;