press releases
This commit is contained in:
@@ -50,7 +50,7 @@ export default function AdBanner({
|
||||
session.user.plan === 'LIFETIME'
|
||||
);
|
||||
|
||||
if (shouldExclude) return null;
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
// Don't load if loading session or if user is paid
|
||||
@@ -92,6 +92,8 @@ export default function AdBanner({
|
||||
// Don't render anything while session is loading
|
||||
if (status === 'loading') return null;
|
||||
|
||||
if (shouldExclude) return null;
|
||||
|
||||
return (
|
||||
<div
|
||||
className={`ad-container flex justify-center items-center overflow-hidden transition-opacity duration-300 ${adFilled ? 'opacity-100' : 'opacity-0 h-0'} ${className}`}
|
||||
|
||||
Reference in New Issue
Block a user