Fix defaults (again)
This commit is contained in:
parent
f8de35c51d
commit
2569de0025
2
index.js
2
index.js
|
@ -143,7 +143,7 @@ function getPercent(site) {
|
||||||
// get vote percentage
|
// get vote percentage
|
||||||
let percent = counts[0] / (counts[0]+counts[1]);
|
let percent = counts[0] / (counts[0]+counts[1]);
|
||||||
|
|
||||||
if (isNaN(percent)) percent = 50;
|
if (isNaN(percent)) percent = 0.5;
|
||||||
|
|
||||||
percent = Math.floor(percent * 100);
|
percent = Math.floor(percent * 100);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue