Skip to content

Commit

Permalink
fix : NONE ์ถ”๊ฐ€
Browse files Browse the repository at this point in the history
  • Loading branch information
KkomSang committed Jun 9, 2024
1 parent 7f2ec1b commit 3184866
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ public enum HappinessLevel {
LOW("๋‚ฎ์Œ","๐Ÿ˜"),
MEDIUM("๋ณดํ†ต","๐Ÿ˜"),
HIGH("๋†’์Œ", "๐Ÿ™‚"),
VERY_HIGH("๋งค์šฐ ๋†’์Œ", "๐Ÿ˜„");
VERY_HIGH("๋งค์šฐ ๋†’์Œ", "๐Ÿ˜„"),
NONE(null, null);
private final String viewName;

@Getter
Expand All @@ -24,9 +25,12 @@ public static HappinessLevel of(double happiness) {
return MEDIUM;
} else if (happiness >= 5 && happiness < 6) {
return HIGH;
} else {
} else if(happiness >=6 && happiness <=7){
return VERY_HIGH;
}
else{
return NONE;
}
}
@JsonValue
public String getViewName() {
Expand Down

0 comments on commit 3184866

Please sign in to comment.