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:07 +05:30
committed by GitHub
parent ead2a5b215
commit cb30e2438a

View File

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