Skip to content

Commit

Permalink
fix(user): 유저 정보 등록 관련 에러 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
wwingyou committed Feb 17, 2025
1 parent 7e807cc commit 2b201b0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/goolbitg/api/entity/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void updateAgreement(

public int getRegisterStatus() {

if (agreement.getAgreement1() == null) return 0;
if (agreement == null || agreement.getAgreement1() == null) return 0;
if (nickname == null) return 1;
if (survey.getCheck1() == null) return 2;
if (survey.getAvgIncomePerMonth() == null) return 3;
Expand All @@ -119,7 +119,8 @@ public int getRegisterStatus() {
}

public boolean isRequiredInfoCompleted() {
return (agreement.getAgreement1() != null &&
return (agreement != null &&
agreement.getAgreement1() != null &&
nickname != null &&
survey.getCheck1() != null &&
survey.getAvgIncomePerMonth() != null &&
Expand Down

0 comments on commit 2b201b0

Please sign in to comment.