diff --git a/umbba-domain/src/main/java/sopt/org/umbba/domain/domain/parentchild/ParentchildRelation.java b/umbba-domain/src/main/java/sopt/org/umbba/domain/domain/parentchild/ParentchildRelation.java index 2ed9b1c6..43191e5a 100644 --- a/umbba-domain/src/main/java/sopt/org/umbba/domain/domain/parentchild/ParentchildRelation.java +++ b/umbba-domain/src/main/java/sopt/org/umbba/domain/domain/parentchild/ParentchildRelation.java @@ -61,12 +61,10 @@ public static ParentchildRelation relation(String gender, String relationInfo, b // 아들 | 딸 | 엄마 | 아빠 구분 public static String getUserType(ParentchildRelation relation, boolean isChild) { - if (relation.childGender.equals("여자")) { - if (isChild) return "딸"; - else return "엄마"; + if (isChild) { + return relation.childGender.equals("남자") ? "아들" : "딸"; } else { - if (isChild) return "아들"; - else return "아빠"; + return relation.parentGender.equals("남자") ? "아빠" : "엄마"; } }