Skip to content

Commit

Permalink
Merge pull request #213 from cargallo/patch-1
Browse files Browse the repository at this point in the history
Clear error correctly in useSignInWithEmailAndPassword
  • Loading branch information
chrisbianca authored Feb 23, 2022
2 parents ab62148 + 435a27e commit adb0785
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auth/useSignInWithEmailAndPassword.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export default (auth: Auth): EmailAndPasswordActionHook => {
password: string
) => {
setLoading(true);
setError(undefined);
try {
const user = await firebaseSignInWithEmailAndPassword(
auth,
Expand Down

0 comments on commit adb0785

Please sign in to comment.