Skip to content

Commit

Permalink
fix up conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarpenter committed Dec 20, 2024
1 parent e458e55 commit 1eef6f5
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ export function handleCombinedFlowTransfer({
// Attempt to transfer directly to sign up verification if email or phone was used, there are no optional fields, and password is not enabled. The signUp.create() call will
// inform us if the instance is eligible for moving directly to verification.
if (
(!passwordEnabled && !hasOptionalFields(clerk.client.signUp) && identifierAttribute === 'emailAddress') ||
identifierAttribute === 'phoneNumber'
!passwordEnabled &&
!hasOptionalFields(clerk.client.signUp) &&
(identifierAttribute === 'emailAddress' || identifierAttribute === 'phoneNumber')
) {
return clerk.client.signUp
.create({
Expand Down

0 comments on commit 1eef6f5

Please sign in to comment.