Skip to content

Commit

Permalink
Merge branch 'dev' into refactor/#114
Browse files Browse the repository at this point in the history
  • Loading branch information
eun-seong committed Mar 15, 2024
2 parents 93fba97 + b4373e9 commit 561ccab
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 @@ protected 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 561ccab

Please sign in to comment.