docs: 🐛 check in a different manner env var
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
This commit is contained in:
parent
1bd1be5cb1
commit
e988a6fa76
@ -139,7 +139,7 @@ function DocPage(props) {
|
||||
);
|
||||
|
||||
// CUSTOM DOCPAGE
|
||||
if (!!process.env.REACT_APP_OAUTH_ENABLE) {
|
||||
if (process.env.REACT_APP_OAUTH_ENABLE == 'true') {
|
||||
const [isUserAuthorized, setIsUserAuthorized] = useState()
|
||||
const [isLoading, setIsLoading] = useState(true)
|
||||
const [redirectState, setRedirectState] = useState()
|
||||
|
Reference in New Issue
Block a user