Skip to content

Commit

Permalink
Update MemberService.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee-DoHa committed Dec 8, 2022
1 parent 0b18c03 commit 680dae1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public MemberResponse getMyInfo() {
.solving(0L)
.build();

if(!member.getNickname().isEmpty()) {
if(!(member.getNickname() == null)) {
memberResponse.setKakaoNickname(member.getNickname());
}

Expand Down Expand Up @@ -208,7 +208,7 @@ public MemberProfile getMemberInfo(String memberToken) {
.notRead(messageRepository.countAllByToMemberTokenAndIsReadFalse(member.getMemberToken()))
.solving(0L)
.build();
if(!member.getNickname().isEmpty()) {
if(!(member.getNickname() == null)) {
memberProfile.setKakaoNickname(member.getNickname());
}

Expand Down Expand Up @@ -238,7 +238,7 @@ public String getMemberName(String memberToken) {
Member member = memberRepository.findByMemberToken(memberToken)
.orElseThrow();

if(member.getNickname().isEmpty()) {
if(member.getNickname() == null) {
return member.getKakaoNickname();
}
return member.getNickname();
Expand Down

0 comments on commit 680dae1

Please sign in to comment.