diff --git a/src/pages/ProfileEdit/ProfileEdit.page.tsx b/src/pages/ProfileEdit/ProfileEdit.page.tsx index 1ade3920..a1ae16d3 100644 --- a/src/pages/ProfileEdit/ProfileEdit.page.tsx +++ b/src/pages/ProfileEdit/ProfileEdit.page.tsx @@ -91,7 +91,7 @@ const ProfileEdit = () => { profileImageUrl: my.profileImageUrl || '', skills: selectedSkillDepths.map(({ id, name }) => ({ skillId: id, level: name.split(', ')[1] })), joinPurposes: checkboxValue.goal.filter(({ checked }) => checked).map(({ id }) => id), - livingPlace: dropdownValue.region, + livingPlace: dropdownValue.region || null, workingPlace: fieldValue.company, introduction: fieldValue.intro, }); diff --git a/src/pages/ProfileEdit/types/index.ts b/src/pages/ProfileEdit/types/index.ts index af46ac5c..eef067c9 100644 --- a/src/pages/ProfileEdit/types/index.ts +++ b/src/pages/ProfileEdit/types/index.ts @@ -14,7 +14,7 @@ export interface PutSignUp { profileImageUrl: string; skills: Omit[]; joinPurposes: number[]; - livingPlace?: string; + livingPlace: string | null; workingPlace?: string; introduction?: string; } diff --git a/src/pages/SignUp/SignUp.page.tsx b/src/pages/SignUp/SignUp.page.tsx index 4905a791..ad0a5ef3 100644 --- a/src/pages/SignUp/SignUp.page.tsx +++ b/src/pages/SignUp/SignUp.page.tsx @@ -94,7 +94,7 @@ const SignUpPage = () => { profileImageUrl: memberInfo?.profileImageUrl || '', skills: selectedSkillDepths.map(({ id, name }) => ({ skillId: id, level: name.split(', ')[1] })), joinPurposes: checkboxValue.goal.filter(({ checked }) => checked).map(({ id }) => id), - livingPlace: dropdownValue.region, + livingPlace: dropdownValue.region || null, workingPlace: fieldValue.company, introduction: fieldValue.intro, email: memberInfo?.email || '', diff --git a/src/pages/SignUp/types/index.ts b/src/pages/SignUp/types/index.ts index 8add0db6..60bd1e11 100644 --- a/src/pages/SignUp/types/index.ts +++ b/src/pages/SignUp/types/index.ts @@ -17,7 +17,7 @@ export interface PostSignUp { level: string; }[]; joinPurposes: number[]; - livingPlace?: string; + livingPlace: string | null; workingPlace?: string; introduction?: string; email: string;