fix: fix state after mfa is enabled (#2050)

This commit is contained in:
Yaodong Yu
2023-07-08 22:35:31 +08:00
committed by GitHub
parent 68417a2d7a
commit a58df645bf
3 changed files with 4 additions and 7 deletions

View File

@ -41,7 +41,7 @@ class EntryPage extends React.Component {
renderHomeIfLoggedIn(component) {
if (this.props.account !== null && this.props.account !== undefined) {
return <Redirect to="/" />;
return <Redirect to={{pathname: "/", state: {from: "/login"}}} />;
} else {
return component;
}