Merge pull request #977 from h3poteto/iss-976
closes #976 Fix digits number of percentage in polls
This commit is contained in:
commit
50baacab7b
|
@ -65,7 +65,7 @@ export default {
|
||||||
if (poll_votes === 0) {
|
if (poll_votes === 0) {
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
return (option_votes * 100) / poll_votes
|
return ((option_votes * 100) / poll_votes).toFixed(0)
|
||||||
},
|
},
|
||||||
vote() {
|
vote() {
|
||||||
if (this.pollRadio !== null) {
|
if (this.pollRadio !== null) {
|
||||||
|
|
Loading…
Reference in New Issue