← back to Homesonspec
Require configured slots for manual AdSense units
324163914d6079dd8485dc777160cbdf247e6306 · 2026-09-10 00:54:10 -0700 · Steve Abrams
Files touched
M apps/web/src/components/AdSlot.tsx
Diff
commit 324163914d6079dd8485dc777160cbdf247e6306
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Sep 10 00:54:10 2026 -0700
Require configured slots for manual AdSense units
---
apps/web/src/components/AdSlot.tsx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/web/src/components/AdSlot.tsx b/apps/web/src/components/AdSlot.tsx
index 9f5a4ea1..554453b2 100644
--- a/apps/web/src/components/AdSlot.tsx
+++ b/apps/web/src/components/AdSlot.tsx
@@ -48,7 +48,7 @@ export default function AdSlot({
className?: string;
}) {
useEffect(() => {
- if (!CLIENT) return;
+ if (!CLIENT || !slot) return;
try {
(window.adsbygoogle = window.adsbygoogle || []).push({});
} catch {
@@ -56,7 +56,7 @@ export default function AdSlot({
}
}, []);
- if (!CLIENT) return null; // gated: nothing renders until the publisher id exists
+ if (!CLIENT || !slot) return null; // never emit an unidentifiable manual unit
return (
<aside
← 6c9cd93d TK-11341: add AdSense Auto-Ads loader + ads.txt (revert to r
·
back to Homesonspec
·
docs: correct stale/false facts in O3 partition plan (TK-113 88e393b7 →