Skip to content

Commit 4a891d9

Browse files
committed
Fix
1 parent 209e233 commit 4a891d9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

web/pages/signin.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ function RegisterComponent() {
6161
const creds = await firebaseLogin();
6262
await redirectSignin(creds)
6363
} catch (error) {
64-
let message = 'Failed to sign in with Google';
6564
console.error("Error signing in:", error);
65+
const message = 'Failed to sign in with Google';
6666
setError(message);
67+
setIsLoading(false);
6768
setIsLoadingGoogle(false);
6869
}
6970
};
@@ -73,10 +74,11 @@ function RegisterComponent() {
7374
const creds = await signInWithEmailAndPassword(auth, email, password);
7475
await redirectSignin(creds)
7576
} catch (error) {
76-
let message = 'Failed to sign in with your email and password';
77-
console.error("Error signing in:", message);
77+
console.error("Error signing in:", error);
78+
const message = 'Failed to sign in with your email and password';
7879
setError(message);
7980
setIsLoading(false);
81+
setIsLoadingGoogle(false);
8082
}
8183
};
8284

0 commit comments

Comments
 (0)