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 = () => {