skip signin if auth disabled

Signed-off-by: Raul Kele <raulkeleblk@gmail.com>
This commit is contained in:
Raul Kele 2022-07-22 21:44:10 +03:00 committed by Andrei Aaron
parent 525c1420b0
commit 5ccc57c8da

View File

@ -77,6 +77,8 @@ export default function SignIn({ isAuthEnabled, setIsAuthEnabled, isLoggedIn, se
.then(response => {
if (response.status === 200) {
setIsAuthEnabled(false);
setIsLoggedIn(true);
navigate("/home");
}
})
.catch(e => {