Browse Source

fix: build errors

Yidadaa 2 years ago
parent
commit
8ec927844c
1 changed files with 1 additions and 1 deletions
  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);