Skip to content

Commit

Permalink
feat: Re-use upsert
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaspt committed Dec 6, 2024
1 parent f026587 commit b046af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clerk-js/src/core/resources/SignUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ export class SignUp extends BaseResource implements SignUpResource {
emailAddress,
legalAccepted,
};
return continueSignUp && this.id ? this.update(params) : this.create(params);
return continueSignUp && this.upsert(params);
};

const { verifications } = await authenticateFn().catch(async e => {
Expand Down

0 comments on commit b046af0

Please sign in to comment.