completionId: cgen-858cbce19f944bb4a6d1761ea1ef5b47
cgen-858cbce19f944bb4a6d1761ea1ef5b47
This commit is contained in:
parent
1d84caf98b
commit
6238bddfe7
1 changed files with 2 additions and 2 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue