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