From 8cac39359537da4beb9f1e92c35069fa844783cf Mon Sep 17 00:00:00 2001 From: Michael Hayes Date: Mon, 6 Feb 2023 21:05:17 -0800 Subject: [PATCH] fix website build --- website/components/Docs/Page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/components/Docs/Page.tsx b/website/components/Docs/Page.tsx index 6c2ff4881..81bdc294a 100644 --- a/website/components/Docs/Page.tsx +++ b/website/components/Docs/Page.tsx @@ -50,7 +50,7 @@ const components = { Alert, }; -const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect; +const useIsomorphicLayoutEffect = typeof window === 'undefined' ? useEffect : useLayoutEffect; export function DocsPage({ children, nav }: { children?: React.ReactNode; nav: TableOfContents }) { const bodyRef = useRef(null);