File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments