This commit is contained in:
Naiel
2025-11-26 11:57:25 +01:00
committed by GitHub
parent bbbc8b1d63
commit f0e32b4ad0

View File

@@ -974,8 +974,8 @@ PAGES.pagos = {
};
var balance_real = 0;
setInterval(() => {
Object.values(SC_Personas).forEach(element => {
balance_real += SC_Personas.Monedero_Balance
Object.values(SC_Personas).forEach(persona => {
balance_real += parseFloat(persona.Monedero_Balance || 0)
});
document.getElementById(balance_total).innerText = balance_real.toFixed(2) + "€";
document.getElementById(balance_total).style.color = balance_real >= 0 ? "white" : "#ffcccc";