overseer panel tweaking

This commit is contained in:
legop3
2026-05-19 21:12:57 -04:00
parent 8c2162d918
commit daa8942a29
6 changed files with 28 additions and 15 deletions
@@ -104,7 +104,10 @@ function buildVoteStatus() {
const sockets = Array.from(io.sockets.sockets.values());
let yesCount = 0;
let noCount = 0;
let eligibleCount = 0;
sockets.forEach((socket) => {
if (getRole(socket) === 'spectator') return;
eligibleCount += 1;
const pref = socket?.data?.overseerEnabled;
if (typeof pref === 'boolean' ? pref : true) yesCount += 1;
else noCount += 1;
@@ -115,6 +118,7 @@ function buildVoteStatus() {
yesCount,
noCount,
onlineCount,
eligibleCount,
gatePassed,
running: Boolean(enabled && gatePassed && getMode() !== MODES.LOCKDOWN),
};