Skip to content

Commit 6145f94

Browse files
committed
feature: default cello attribution state to hidden to prevent script loading before expiration check
1 parent 928f9de commit 6145f94

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/specialoffer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function SpecialOffer({
3232
footerLang,
3333
navbarLang,
3434
}: SpecialOfferProps): JSX.Element {
35-
const [isCelloAttributionExpired, setIsCelloAttributionExpired] = useState(false);
35+
const [isCelloAttributionExpired, setIsCelloAttributionExpired] = useState(true);
3636

3737
useEffect(() => {
3838
saveCelloFirstVisit();

src/pages/specialoffer/[filename].tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function CombinedSpecialOffer({
6666
pathname,
6767
}: CombinedSpecialOfferProps): JSX.Element {
6868
const router = useRouter();
69-
const [isCelloAttributionExpired, setIsCelloAttributionExpired] = useState(false);
69+
const [isCelloAttributionExpired, setIsCelloAttributionExpired] = useState(true);
7070
const selectedPathname = ALLOWED_PATHS.find((p) => p === pathname);
7171
const isDarkMode = selectedPathname ? DARK_MODE_PATHS.includes(selectedPathname) : false;
7272
const isValentinesMode = selectedPathname === 'love';

0 commit comments

Comments
 (0)