fix: handled submitting wihtout entering emailid (#3149)

This commit is contained in:
Sahil 2023-12-26 14:08:55 +05:30 committed by GitHub
parent ca056dfb27
commit 52e2a33e62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,9 @@ export const useSignInUp = () => {
}, [setSignInUpStep, setSignInUpMode, isMatchingLocation]);
const continueWithCredentials = useCallback(() => {
if (!form.getValues('email')) {
return;
}
checkUserExistsQuery({
variables: {
email: form.getValues('email').toLowerCase(),