Only try to login once for git gateway when page loads

This commit is contained in:
Daniel Lautzenheiser 2022-10-26 07:19:03 -04:00
parent daf44f9dc2
commit 2fcaf3553e
No known key found for this signature in database
GPG Key ID: D2F75F7DD915527E

View File

@ -60,7 +60,8 @@ const GitGatewayAuthenticationPage = ({
onLogin(window.netlifyIdentity.currentUser());
window.netlifyIdentity.close();
}
}, [loggedIn, onLogin]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const handleIdentityLogin = useCallback(
(user: User) => {