From 8c181a2d4693559f67d17acff07de39734cd7b1d Mon Sep 17 00:00:00 2001 From: slumbering Date: Mon, 14 Jun 2021 18:23:03 +0200 Subject: [PATCH] docs: :bug: oups Signed-off-by: slumbering --- website/src/theme/DocPage/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/src/theme/DocPage/index.js b/website/src/theme/DocPage/index.js index 4012d453..af69ddeb 100644 --- a/website/src/theme/DocPage/index.js +++ b/website/src/theme/DocPage/index.js @@ -141,7 +141,7 @@ function DocPage(props) { // CUSTOM DOCPAGE // Do not use Github authentication when in local env or Netlify deploy preview if (typeof window === "undefined" || - (typeof window !== "undefined" && (window?.location?.hostname !== "localhost" || window.location.hostname.includes('deploy-preview')))) { + (typeof window !== "undefined" && (window?.location?.hostname !== "localhost" || !window?.location?.hostname.includes('deploy-preview')))) { const [isUserAuthorized, setIsUserAuthorized] = useState() const [isLoading, setIsLoading] = useState(true) const [redirectState, setRedirectState] = useState()