Skip to content

Commit

Permalink
Fix : 유저 프로필이 디폴트 프로필일때만 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
Astin01 committed Sep 22, 2024
1 parent 4046560 commit c686fa2
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 c686fa2

Please sign in to comment.