diff --git a/app/components/home.tsx b/app/components/home.tsx index 8339f890..e7048984 100644 --- a/app/components/home.tsx +++ b/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);