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:
|
// Fetch on mount:
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
doFetchPersonalRecommendations();
|
hasMembership && doFetchPersonalRecommendations();
|
||||||
}, []); // eslint-disable-line react-hooks/exhaustive-deps
|
}, [hasMembership]); // eslint-disable-line react-hooks/exhaustive-deps
|
||||||
|
|
||||||
if ((!hasMembership && !process.env.ENABLE_WIP_FEATURES) || count < 1) {
|
if ((!hasMembership && !process.env.ENABLE_WIP_FEATURES) || count < 1) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in a new issue