don't load FYP endpoint if not Premium
This commit is contained in:
parent
1e67a5cc7f
commit
e62031f0a2
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue