Skip to content

Commit

Permalink
Merge pull request #66 from go-cham/Hyeonmin
Browse files Browse the repository at this point in the history
Fixed:프로필 편집 카테고리 0개시 유지안되는 버그수정
  • Loading branch information
wildcatco authored Aug 8, 2023
2 parents a9e7b72 + 3c24b76 commit 60f7c7f
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/fsevents-patch-2882183fbf-8.zip
Binary file not shown.
1 change: 0 additions & 1 deletion src/components/user/RegionJobCategoryForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function RegionJobCategoryForm({
categoryIds: false,
});
const jobErrorMessage = isDirty.job ? validateJob(formData.job) : null;

const handleResidenceChange = (residenceId: number) => {
setIsDirty({ ...isDirty, residenceId: true });
const selected = residenceOptions.find(
Expand Down
2 changes: 1 addition & 1 deletion src/pages/edit-profile/EditProfilePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function EditProfilePage() {
nickname: formData.nickname,
job: formData.job,
worryCategories:
formData.categoryIds.length > 0 ? formData.categoryIds : null,
formData.categoryIds.length > 0 ? formData.categoryIds : [],
sex: formData.gender,
residenceId: formData.residenceId,
birthDate: formData.birthday,
Expand Down

0 comments on commit 60f7c7f

Please sign in to comment.