From 1ffb10832388e98008f968d38382e81fe03531eb Mon Sep 17 00:00:00 2001 From: slumbering Date: Mon, 14 Jun 2021 18:42:15 +0200 Subject: [PATCH] docs: :bug: wrong condition 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 af69ddeb..14c7e03c 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'))) { const [isUserAuthorized, setIsUserAuthorized] = useState() const [isLoading, setIsLoading] = useState(true) const [redirectState, setRedirectState] = useState()