Update src/components/EmptyChat.tsx

Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
This commit is contained in:
Kushagra Srivastava
2025-11-28 18:17:01 +05:30
committed by GitHub
parent 1df4d886ff
commit ead2a5b215

View File

@@ -15,7 +15,7 @@ import {
const EmptyChat = () => { const EmptyChat = () => {
const [showWeather, setShowWeather] = useState(true); const [showWeather, setShowWeather] = useState(true);
const [showNews, setShowNews] = useState(true); const [showNews, setShowNews] = useState(() => (typeof window !== 'undefined' ? getShowNewsWidget() : true));
useEffect(() => { useEffect(() => {
const updateWidgetVisibility = () => { const updateWidgetVisibility = () => {