@@ -43,7 +43,11 @@ const DeekSeek: React.FC = () => {
React.useEffect(() => {
chatStore.clearSessions();
- init()
+ const userInfo = localStorage.getItem('userInfo');
+
+ if (userInfo) {
+ init();
+ }
}, []);
return (