Skip to content

Commit

Permalink
Merge pull request #119 from dnd-side-project/dev
Browse files Browse the repository at this point in the history
release v0.2.3
  • Loading branch information
eun-seong authored Mar 11, 2024
2 parents 0cb01c5 + b4373e9 commit f2530a7
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 f2530a7

Please sign in to comment.