Skip to content

Commit

Permalink
fix(clerk-js): Return reject(err) in factor one & two code forms (#2080)
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtallness authored Nov 9, 2023
1 parent b265764 commit 9e10d57
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-donuts-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-js': patch
---

Return reject(err) in factor one & two code forms
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const SignInFactorOneCodeForm = (props: SignInFactorOneCodeFormProps) =>
return clerk.__internal_navigateWithError('..', err.errors[0]);
}

reject(err);
return reject(err);
});
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const SignInFactorTwoCodeForm = (props: SignInFactorTwoCodeFormProps) =>
return clerk.__internal_navigateWithError('..', err.errors[0]);
}

reject(err);
return reject(err);
});
};

Expand Down

0 comments on commit 9e10d57

Please sign in to comment.