about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-09-29 21:23:40 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-09-29 21:23:40 +0200
commit15b3eeb326d7e6a026235ece25c3be75250de92f (patch)
treeb6ddf2c2fcffd27cd74dcff1d27153b91a31e7f7 /app/javascript
parent13b06d4b3b705deb90d063f4903737b5609dfbc7 (diff)
Change vote results to display ex-aequo leading options as leading (#12001)
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/components/poll.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/poll.js b/app/javascript/mastodon/components/poll.js
index dd7e2fcd3..f88d260f2 100644
--- a/app/javascript/mastodon/components/poll.js
+++ b/app/javascript/mastodon/components/poll.js
@@ -103,7 +103,7 @@ class Poll extends ImmutablePureComponent {
   renderOption (option, optionIndex, showResults) {
     const { poll, disabled, intl } = this.props;
     const percent = poll.get('votes_count') === 0 ? 0 : (option.get('votes_count') / poll.get('votes_count')) * 100;
-    const leading = poll.get('options').filterNot(other => other.get('title') === option.get('title')).every(other => option.get('votes_count') > other.get('votes_count'));
+    const leading = poll.get('options').filterNot(other => other.get('title') === option.get('title')).every(other => option.get('votes_count') >= other.get('votes_count'));
     const active  = !!this.state.selected[`${optionIndex}`];
     const voted   = option.get('voted') || (poll.get('own_votes') && poll.get('own_votes').includes(optionIndex));