fix
This commit is contained in:
@@ -974,8 +974,8 @@ PAGES.pagos = {
|
|||||||
};
|
};
|
||||||
var balance_real = 0;
|
var balance_real = 0;
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
Object.values(SC_Personas).forEach(element => {
|
Object.values(SC_Personas).forEach(persona => {
|
||||||
balance_real += SC_Personas.Monedero_Balance
|
balance_real += parseFloat(persona.Monedero_Balance || 0)
|
||||||
});
|
});
|
||||||
document.getElementById(balance_total).innerText = balance_real.toFixed(2) + "€";
|
document.getElementById(balance_total).innerText = balance_real.toFixed(2) + "€";
|
||||||
document.getElementById(balance_total).style.color = balance_real >= 0 ? "white" : "#ffcccc";
|
document.getElementById(balance_total).style.color = balance_real >= 0 ? "white" : "#ffcccc";
|
||||||
|
|||||||
Reference in New Issue
Block a user