Skip to content

Commit

Permalink
Revert "chore: 프로필 default 값 수정"
Browse files Browse the repository at this point in the history
This reverts commit a5e5612.
  • Loading branch information
bottlewook committed Mar 5, 2024
1 parent ff1b9c0 commit f223459
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/app/(my-page)/my-page/profile/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function ProfilePage() {
return {
id: profile?.value.id,
email: profile?.value.email,
gender: profile?.value.gender === 'OTHERS' ? 'DEFAULT' : profile?.value.gender,
age: profile?.value.age === 'AGE_99' ? 'DEFAULT' : profile?.value.age,
gender: profile?.value.gender === 'OTHERS' ? 'MALE' : profile?.value.gender,
age: profile?.value.age === 'AGE_99' ? 'AGE_20' : profile?.value.age,
};
}, [profile]),
mode: 'onBlur',
Expand All @@ -53,8 +53,8 @@ function ProfilePage() {
reset({
id: profile?.value.id,
email: profile?.value.email,
gender: profile?.value.gender === 'OTHERS' ? 'DEFAULT' : profile?.value.gender,
age: profile?.value.age === 'AGE_99' ? 'DEFAULT' : profile?.value.age,
gender: profile?.value.gender === 'OTHERS' ? 'MALE' : profile?.value.gender,
age: profile?.value.age === 'AGE_99' ? 'AGE_20' : profile?.value.age,
});
}, [profile, reset]);

Expand Down
2 changes: 0 additions & 2 deletions src/constants/dropdownMap.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export const GENDER_MAP = {
MALE: '남성',
FEMALE: '여성',
DEFAULT: '수정 필요',
} as const;

export const AGE_MAP = {
Expand All @@ -10,7 +9,6 @@ export const AGE_MAP = {
AGE_40: '40대',
AGE_50: '50대',
AGE_60: '60대 이상',
DEFAULT: '수정 필요',
} as const;

export type GenderType = keyof typeof GENDER_MAP;
Expand Down

0 comments on commit f223459

Please sign in to comment.