Fix defaults (again)

master
Conor 5 months ago
parent f8de35c51d
commit 2569de0025
GPG Key ID: A28C6F51829932B9
  1. 2
      index.js

@ -143,7 +143,7 @@ function getPercent(site) {
// get vote percentage
let percent = counts[0] / (counts[0]+counts[1]);
if (isNaN(percent)) percent = 50;
if (isNaN(percent)) percent = 0.5;
percent = Math.floor(percent * 100);

Loading…
Cancel
Save