docs: 🐛 check in a different manner env var

Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
slumbering 2021-06-18 11:43:17 +02:00
parent 1bd1be5cb1
commit e988a6fa76

View File

@ -139,7 +139,7 @@ function DocPage(props) {
); );
// CUSTOM DOCPAGE // CUSTOM DOCPAGE
if (!!process.env.REACT_APP_OAUTH_ENABLE) { if (process.env.REACT_APP_OAUTH_ENABLE == 'true') {
const [isUserAuthorized, setIsUserAuthorized] = useState() const [isUserAuthorized, setIsUserAuthorized] = useState()
const [isLoading, setIsLoading] = useState(true) const [isLoading, setIsLoading] = useState(true)
const [redirectState, setRedirectState] = useState() const [redirectState, setRedirectState] = useState()