about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-09-29 21:23:40 +0200
committerThibaut Girka <thib@sitedethib.com>2019-09-30 15:58:29 +0200
commit332be562eab78975fdbf1e928cddbe7528d93468 (patch)
tree9d7210cfceaccae36ad2342644fb24dc7cd99b15 /app
parentec244f6c883181275329bc8a5dda526cc9e90628 (diff)
[Glitch] Change vote results to display ex-aequo leading options as leading
Port 15b3eeb326d7e6a026235ece25c3be75250de92f to glitch-soc

Signed-off-by: Thibaut Girka <thib@sitedethib.com>
Diffstat (limited to 'app')
-rw-r--r--app/javascript/flavours/glitch/components/poll.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/poll.js b/app/javascript/flavours/glitch/components/poll.js
index 2128bff61..b431d2d8d 100644
--- a/app/javascript/flavours/glitch/components/poll.js
+++ b/app/javascript/flavours/glitch/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));