completionId: cgen-c3b8100208f44a0fa519514cc3833f5c
cgen-c3b8100208f44a0fa519514cc3833f5c
This commit is contained in:
parent
883dfbfcc7
commit
c4bfc61e31
1 changed files with 7 additions and 0 deletions
|
|
@ -147,6 +147,13 @@ export default function Login() {
|
||||||
}
|
}
|
||||||
}, [user, loading, profileComplete, navigate, location.search]);
|
}, [user, loading, profileComplete, navigate, location.search]);
|
||||||
|
|
||||||
|
// Pre-fill email if Discord was just linked
|
||||||
|
useEffect(() => {
|
||||||
|
if (discordLinkedEmail) {
|
||||||
|
setEmail(discordLinkedEmail);
|
||||||
|
}
|
||||||
|
}, [discordLinkedEmail]);
|
||||||
|
|
||||||
const handleSubmit = async (e: React.FormEvent) => {
|
const handleSubmit = async (e: React.FormEvent) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
setIsLoading(true);
|
setIsLoading(true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue