From 62f8af286cc498b52c61bd75fc8581ed99fb3b40 Mon Sep 17 00:00:00 2001
From: Laura Beatris <48022589+LauraBeatris@users.noreply.github.com>
Date: Tue, 21 May 2024 14:33:53 -0300
Subject: [PATCH] fix(clerk-js): Update existing `SignUp` object on
`SignUpContinue` OAuth (#3401)
---
.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() {
)}