Explorar o código

fix: build errors

Yidadaa %!s(int64=2) %!d(string=hai) anos
pai
achega
8ec927844c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/components/home.tsx

+ 1 - 1
app/components/home.tsx

@@ -299,7 +299,7 @@ function useSwitchTheme() {
 
 export function Home() {
   const [createNewSession] = useChatStore((state) => [state.newSession]);
-  const loading = !useChatStore.persist.hasHydrated();
+  const loading = !useChatStore?.persist?.hasHydrated();
 
   // settings
   const [openSettings, setOpenSettings] = useState(false);