Fix defaults

This commit is contained in:
Conor 2022-06-22 01:23:29 +01:00
parent 311a58cde4
commit 80b9a54f28
Signed by: CADawg
GPG Key ID: A28C6F51829932B9
1 changed files with 1 additions and 1 deletions

View File

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