Fix password reset redux auth token issue (#5630)

Co-authored by: Sarah Gillespie <sarahgillespi314@gmail.com>
This commit is contained in:
RachelElysia 2022-05-09 11:16:35 -04:00 committed by GitHub
parent 4dd2e57d5b
commit e3c0e2d3b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

View File

@ -0,0 +1 @@
* Fix: Creating a new user password

View File

@ -69,10 +69,12 @@ const App = ({ children, location, router }: IAppProps): JSX.Element => {
setAvailableTeams(available_teams);
fetchConfig();
} catch (error) {
if (!location?.pathname.includes("/login/reset")) {
console.log(error);
local.removeItem("auth_token");
window.location.href = "/login";
}
}
return true;
};