We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 652a807 commit 1805cacCopy full SHA for 1805cac
apps/frontend/src/modules/shared/components/client/ads/AdSlots.tsx
@@ -18,13 +18,10 @@ const HideAdButton = ({
18
<button
19
className='h-6 w-3'
20
onClick={() => {
21
- (setIsHidden(true),
22
- setTimeout(
23
- () => {
24
- setIsHidden(false);
25
- },
26
- 1000 * 60 * 5,
27
- )); // Reappers after 5 minutes
+ setIsHidden(true);
+ setTimeout(() => {
+ setIsHidden(false);
+ }, 1000 * 60 * 5); // Reappears after 5 minutes
28
}}
29
>
30
<FontAwesomeIcon
@@ -62,7 +59,7 @@ const AdTemplate = ({
62
59
try {
63
60
(window.adsbygoogle = window.adsbygoogle || []).push({});
64
61
} catch (e) {
65
- console.error(e);
+ // Silently handle ad loading errors
66
}
67
68
}, []);
0 commit comments