From 8ec927844c85deb1b99424ec2d7623096ac500b8 Mon Sep 17 00:00:00 2001 From: Yidadaa Date: Tue, 14 Mar 2023 00:28:25 +0800 Subject: [PATCH] fix: build errors --- app/components/home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);