Skip to content

Commit

Permalink
Refactor/#109: 회원가입 및 프로필 수정시 지역 미선택 경우에 null 값 보내도록 변경 (#111)
Browse files Browse the repository at this point in the history
* refactor: 회원 가입시 지역 미선택 경우 빈 스트링 대신 null 보내도록 변경

서버 요청사항 입니다.

* refactor: 프로필 수정시 지역 미선택 경우 빈 스트링 대신 null 보내도록 변경

서버 요청사항 입니다.
  • Loading branch information
semnil5202 authored Apr 17, 2024
1 parent 5ab22a2 commit 8afa44d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/ProfileEdit/ProfileEdit.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
2 changes: 1 addition & 1 deletion src/pages/ProfileEdit/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface PutSignUp {
profileImageUrl: string;
skills: Omit<ProfileSkill, 'skillName'>[];
joinPurposes: number[];
livingPlace?: string;
livingPlace: string | null;
workingPlace?: string;
introduction?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SignUp/SignUp.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 || '',
Expand Down
2 changes: 1 addition & 1 deletion src/pages/SignUp/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export interface PostSignUp {
level: string;
}[];
joinPurposes: number[];
livingPlace?: string;
livingPlace: string | null;
workingPlace?: string;
introduction?: string;
email: string;
Expand Down

0 comments on commit 8afa44d

Please sign in to comment.