Fix URL check for sandbox redirect (#7227)

This commit is contained in:
Luke Heath 2022-08-15 18:25:12 -05:00 committed by GitHub
parent 18852aae66
commit a4c1e25c98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,9 +47,8 @@ export const AuthenticatedRoutes = ({
useDeepEffect(() => {
// this works with App.tsx. if authToken does
// exist, user state is checked and fetched if null
if (!authToken()) {
if (window.location.pathname.includes("sandbox")) {
if (window.location.hostname.includes("sandbox")) {
return redirectToSandboxLogin();
}