From cb30e2438aa0811ebcd2d35a4295e9f697fee529 Mon Sep 17 00:00:00 2001 From: Kushagra Srivastava <95534749+ItzCrazyKns@users.noreply.github.com> Date: Fri, 28 Nov 2025 18:17:07 +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 1c5b465..4596f49 100644 --- a/src/components/EmptyChat.tsx +++ b/src/components/EmptyChat.tsx @@ -14,7 +14,7 @@ import { } from '@/lib/config/clientRegistry'; const EmptyChat = () => { - const [showWeather, setShowWeather] = useState(true); + const [showWeather, setShowWeather] = useState(() => (typeof window !== 'undefined' ? getShowWeatherWidget() : true)); const [showNews, setShowNews] = useState(() => (typeof window !== 'undefined' ? getShowNewsWidget() : true)); useEffect(() => {