Enable Sticky on the homepage
This excludes mobile and other scenarios handled by the `should*` variables.
This commit is contained in:
parent
e70ed61d4e
commit
91e83760d4
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export default function AdsSticky(props: Props) {
|
||||||
function shouldShowAdsForPath(pathname, isContentClaim, isChannelClaim, authenticated) {
|
function shouldShowAdsForPath(pathname, isContentClaim, isChannelClaim, authenticated) {
|
||||||
// $FlowIssue: mixed type
|
// $FlowIssue: mixed type
|
||||||
const pathIsCategory = Object.values(homepageData).some((x) => pathname.startsWith(`/$/${x?.name}`));
|
const pathIsCategory = Object.values(homepageData).some((x) => pathname.startsWith(`/$/${x?.name}`));
|
||||||
return pathIsCategory || isChannelClaim || (isContentClaim && !authenticated);
|
return pathIsCategory || isChannelClaim || (isContentClaim && !authenticated) || pathname === '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
React.useEffect(() => {
|
React.useEffect(() => {
|
||||||
|
|
Loading…
Reference in a new issue