From 5fcb78cdcfe894a81d4abeb240a0792181c32b85 Mon Sep 17 00:00:00 2001 From: Dada878 Date: Mon, 2 Dec 2024 23:46:42 +0800 Subject: [PATCH] fix: fix document is not defind bug --- app/cfp/(submission)/_components/early-bird.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/cfp/(submission)/_components/early-bird.tsx b/app/cfp/(submission)/_components/early-bird.tsx index cca5337..74dcd75 100644 --- a/app/cfp/(submission)/_components/early-bird.tsx +++ b/app/cfp/(submission)/_components/early-bird.tsx @@ -40,6 +40,8 @@ export function EarlyBirdHome() { if (!SHOW_EARLY_BIRD) return null; + if (typeof window !== "object") return null; + return ( <> {!isExpired ? (