diff options
author | Marco Ambrosini <marcoambrosini@icloud.com> | 2022-08-26 14:43:07 +0300 |
---|---|---|
committer | Marco Ambrosini <marcoambrosini@icloud.com> | 2022-08-26 14:43:07 +0300 |
commit | f9db4689a00be6925d389ff4f3f36e25408698aa (patch) | |
tree | dc35b6eb8904b738514b0f4246337cdb4224b2a6 /src/components | |
parent | 8689bbc8760c624f675a1b5cffa8baaebcdf795d (diff) |
Do not display decimals in percentages
Signed-off-by: Marco Ambrosini <marcoambrosini@icloud.com>
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue b/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue index abee7dbe7..8925a3163 100644 --- a/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue +++ b/src/components/MessagesList/MessagesGroup/Message/MessagePart/Poll.vue @@ -259,7 +259,7 @@ export default { if (this.pollVotes[`option-${index}`] === undefined) { return 0 } - return this.pollVotes[`option-${index}`] / this.votersNumber * 100 + return parseInt(this.pollVotes[`option-${index}`] / this.votersNumber * 100) } }, |