Skip to content

Commit

Permalink
fix: set mbti to null if no selection
Browse files Browse the repository at this point in the history
  • Loading branch information
ooooorobo committed Dec 8, 2024
1 parent 5f7fd7f commit e742fe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entities/profile/model/convertProfileToDto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const convertProfileToDto = (profile: MyProfile, images: ImageDto[]): Use
cities: profile.location.map((l) => l.city.city),
towns: profile.location.flatMap((l) => l.town.map((t) => t.town)),
},
mbti: (profile.mbti as UserInfoRequestMbti) ?? 'INFP',
mbti: (profile.mbti as UserInfoRequestMbti) ?? null,
religion: profile.religion,
smoking: profile.smoking,
// 추가 질문
Expand Down

0 comments on commit e742fe0

Please sign in to comment.