Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Ambrosini <marcoambrosini@icloud.com>2022-08-26 14:43:07 +0300
committerMarco Ambrosini <marcoambrosini@icloud.com>2022-08-26 14:43:07 +0300
commitf9db4689a00be6925d389ff4f3f36e25408698aa (patch)
treedc35b6eb8904b738514b0f4246337cdb4224b2a6 /src/components
parent8689bbc8760c624f675a1b5cffa8baaebcdf795d (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.vue2
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)
}
},