add support for multiple choice polls (#1212)
This commit is contained in:
parent
a471e358c3
commit
8d01e54caf
5 changed files with 239 additions and 52 deletions
|
@ -22,7 +22,7 @@ data class Poll(
|
|||
}
|
||||
}
|
||||
|
||||
return copy(options = newOptions, votesCount = votesCount + 1, voted = true)
|
||||
return copy(options = newOptions, votesCount = votesCount + choices.size, voted = true)
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue