From c1a59fbf3cff27263c7f3ae8c9d377d2a0a75f3e Mon Sep 17 00:00:00 2001
From: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com>
Date: Fri, 17 May 2024 14:31:34 -0300
Subject: [PATCH] fix(clerk-js): Update existing `SignUp` object on
`SignUpContinue` OAuth
---
.changeset/loud-tables-rush.md | 9 +++++++++
.../clerk-js/src/ui/components/SignUp/SignUpContinue.tsx | 1 +
2 files changed, 10 insertions(+)
create mode 100644 .changeset/loud-tables-rush.md
diff --git a/.changeset/loud-tables-rush.md b/.changeset/loud-tables-rush.md
new file mode 100644
index 0000000000..34673b9e6f
--- /dev/null
+++ b/.changeset/loud-tables-rush.md
@@ -0,0 +1,9 @@
+---
+'@clerk/clerk-js': patch
+---
+
+A bug was fixed to not override the existing sign-up state on the OAuth callback.
+
+When continuing a sign-up flow with social connections, `@clerk/clerk-js` was creating a new `SignUpResource` object, instead of patching the existing one.
+
+This was affecting Web3 sign-up flows, since the wallet ID was being overridden on the browser redirect.
diff --git a/packages/clerk-js/src/ui/components/SignUp/SignUpContinue.tsx b/packages/clerk-js/src/ui/components/SignUp/SignUpContinue.tsx
index 512c069576..7ac0c7188e 100644
--- a/packages/clerk-js/src/ui/components/SignUp/SignUpContinue.tsx
+++ b/packages/clerk-js/src/ui/components/SignUp/SignUpContinue.tsx
@@ -175,6 +175,7 @@ function _SignUpContinue() {
)}