Merge pull request #977 from h3poteto/iss-976

closes #976 Fix digits number of percentage in polls
This commit is contained in:
AkiraFukushima 2019-07-22 22:40:48 +09:00 committed by GitHub
commit 50baacab7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ export default {
if (poll_votes === 0) {
return 0
}
return (option_votes * 100) / poll_votes
return ((option_votes * 100) / poll_votes).toFixed(0)
},
vote() {
if (this.pollRadio !== null) {