mirror of
https://github.com/status-im/snt-voting.git
synced 2025-02-24 08:08:19 +00:00
Percentage fix
This commit is contained in:
parent
1c0bc61fe2
commit
34bf68006e
@ -184,7 +184,7 @@ class BallotSlider extends Component {
|
|||||||
const nextVote = value + 1;
|
const nextVote = value + 1;
|
||||||
|
|
||||||
const toBN = web3.utils.toBN;
|
const toBN = web3.utils.toBN;
|
||||||
let percentage = Math.round(value * value * 100 / balance);
|
let percentage = Math.round(value * 100 / maxVotes);
|
||||||
percentage = percentage > 100 ? 100 : percentage;
|
percentage = percentage > 100 ? 100 : percentage;
|
||||||
|
|
||||||
return <Card className="card">
|
return <Card className="card">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user