Merge pull request #12424 from germanocaumo/poll-ann-7

fix: don't show empty line when poll have 7 answers
This commit is contained in:
Anton Georgiev 2021-05-20 14:47:08 -04:00 committed by GitHub
commit fa8ced6165
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -268,7 +268,7 @@ object Polls {
// Limit the number of answers displayed to minimize
// squishing the display.
if (sorted_answers.length < 7) {
if (sorted_answers.length <= 7) {
sorted_answers.foreach(ans => {
answers += SimpleVoteOutVO(ans.id, ans.key, ans.numVotes)
})