From ead2a5b2154bf600abccbc4afce4f95a99feb04d Mon Sep 17 00:00:00 2001 From: Kushagra Srivastava <95534749+ItzCrazyKns@users.noreply.github.com> Date: Fri, 28 Nov 2025 18:17:01 +0530 Subject: [PATCH] Update src/components/EmptyChat.tsx Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com> --- src/components/EmptyChat.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/EmptyChat.tsx b/src/components/EmptyChat.tsx index 53ec46a..1c5b465 100644 --- a/src/components/EmptyChat.tsx +++ b/src/components/EmptyChat.tsx @@ -15,7 +15,7 @@ import { const EmptyChat = () => { const [showWeather, setShowWeather] = useState(true); - const [showNews, setShowNews] = useState(true); + const [showNews, setShowNews] = useState(() => (typeof window !== 'undefined' ? getShowNewsWidget() : true)); useEffect(() => { const updateWidgetVisibility = () => {