Skip to content

Commit

Permalink
Fix : 유저 프로필이 디폴트 프로필일때만 변경 (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
Astin01 authored Sep 22, 2024
1 parent 3f8e1f3 commit 866434d
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ public void updateUserInfo(Long userId, UpdateUserInfoRequest request) {

private void changeUserProfile(User user, UpdateUserInfoRequest request) {
String sex = request.getSex();
if(sex.equals("male")){

if(user.getUserImage().equals(noneProfileUrl) && sex.equals("male")){
user.updateUserImage(maleProfileUrl);
} else if (sex.equals("female")) {
} else if (user.getUserImage().equals(noneProfileUrl) && sex.equals("female")) {
user.updateUserImage(femaleProfileUrl);
}
}
Expand Down

0 comments on commit 866434d

Please sign in to comment.