Skip to content

Commit

Permalink
Merge pull request #118 from dnd-side-project/fix/manual-option-count
Browse files Browse the repository at this point in the history
fix: 직접 μž…λ ₯일 경우 option μΉ΄μš΄νŒ…ν•˜μ§€ μ•Šλ„λ‘ μˆ˜μ •
  • Loading branch information
eun-seong authored Mar 11, 2024
2 parents 920a972 + 5db63b4 commit b4373e9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ public static RatioStatistic create(Question question) {
public void updateStatistic(Answer answer) {
increaseTotalCount();

if (answer.getType().isOption()) {
increaseOptionCount(answer);
}
}

private void increaseOptionCount(Answer answer) {
Question question = answer.getQuestion();
String optionId = answer.getAnswer().toString();
Legend legend = getLegend(optionId)
Expand Down

0 comments on commit b4373e9

Please sign in to comment.