fix: Regression loading shares in #5552
fix: Double auth.info load with multiple tabs open fix: Request loop when suspended with multiple tabs open
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { observer } from "mobx-react";
|
||||
import * as React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import LoadingIndicator from "~/components/LoadingIndicator";
|
||||
import { Redirect } from "react-router-dom";
|
||||
import useStores from "~/hooks/useStores";
|
||||
import { changeLanguage } from "~/utils/language";
|
||||
|
||||
@@ -24,7 +24,8 @@ const Authenticated = ({ children }: Props) => {
|
||||
return children;
|
||||
}
|
||||
|
||||
return <LoadingIndicator />;
|
||||
void auth.logout(true);
|
||||
return <Redirect to="/" />;
|
||||
};
|
||||
|
||||
export default observer(Authenticated);
|
||||
|
||||
Reference in New Issue
Block a user