File tree 2 files changed +4
-8
lines changed
features/onboarding/hooks
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -50,11 +50,9 @@ export function useLoginWithPasskey() {
50
50
} catch ( error ) {
51
51
logger . error ( "[login] Error during login process:" , error ) ;
52
52
throw error ;
53
+ } finally {
54
+ setIsLoggingIn ( false ) ;
53
55
}
54
- // Don't set because the component will get unmounted anyway and we don't want the loading to stop
55
- // finally {
56
- // setIsLoggingIn(false);
57
- // }
58
56
} ;
59
57
60
58
return { login, isLoggingIn } ;
Original file line number Diff line number Diff line change @@ -54,11 +54,9 @@ export function useSignupWithPasskey() {
54
54
} ;
55
55
} catch ( error ) {
56
56
throw error ;
57
+ } finally {
58
+ setIsSigningUp ( false ) ;
57
59
}
58
- // Don't set because the component will get unmounted anyway and we don't want the loading to stop
59
- // finally {
60
- // setIsSigningUp(false);
61
- // }
62
60
} ;
63
61
64
62
return { signup, isSigningUp : isSigningUp } ;
You can’t perform that action at this time.
0 commit comments