diff --git a/src/app/components/elements/Voting.jsx b/src/app/components/elements/Voting.jsx index f1fd0c5bf1ffe47cb9ea24c4f9a7eb4c6ff938a3..9eac080513b4ba32285637065864b8aa86b13bb1 100644 --- a/src/app/components/elements/Voting.jsx +++ b/src/app/components/elements/Voting.jsx @@ -506,8 +506,8 @@ class Voting extends React.Component { avotes.sort((a, b) => (abs(a.rshares) > abs(b.rshares) ? -1 : 1)); for (let v = 0; v < maxlen; ++v) { const { rshares, voter } = avotes[v]; - if (rshares == '0') continue; - const sign = rshares[0] == '-' ? '- ' : '+ '; + if (rshares === 0) continue; + const sign = rshares < 0 ? '- ' : '+ '; voters.push({ value: sign + voter, link: '/@' + voter }); }