From 6238bddfe7ae0916fe014a4d243a793047223bef Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 17 Nov 2025 02:50:59 +0000 Subject: [PATCH] completionId: cgen-858cbce19f944bb4a6d1761ea1ef5b47 cgen-858cbce19f944bb4a6d1761ea1ef5b47 --- client/pages/Onboarding.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/pages/Onboarding.tsx b/client/pages/Onboarding.tsx index 7cf67dc7..e0f25a9a 100644 --- a/client/pages/Onboarding.tsx +++ b/client/pages/Onboarding.tsx @@ -375,13 +375,13 @@ export default function Onboarding() { ); // Create creator profile if they provided primary arm - const creatorProfilePromise = data.creatorProfile.primaryArm + const creatorProfilePromise = data.creatorProfile.primaryArm && finalUsername ? fetch(`${API_BASE}/api/creators`, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ user_id: user.id, - username: payload.username, + username: finalUsername, bio: data.creatorProfile.bio || null, avatar_url: null, // Can be added later in profile settings experience_level: data.experience.level || "junior",