Cambiado el sorter de addCategory_Personas, y arreglado el monedero de la pagina de inicio y TS_IndexElement

This commit is contained in:
naielv
2025-12-14 20:20:17 +01:00
parent 3dbaa9bd33
commit dd9fda10f7
2 changed files with 3 additions and 3 deletions

View File

@@ -287,7 +287,7 @@ function addCategory_Personas(
parent.append(details_0);
var lastreg = "";
Object.entries(options)
.sort(PERSONAS_Sorter)
.sort(betterSorter)
.map((entry) => {
var key = entry[0];
var value = entry[1];
@@ -1006,7 +1006,7 @@ function TS_IndexElement(
if (parseFloat(persona.Monedero_Balance || "0") != 0) {
const pointsSpan = document.createElement("span");
pointsSpan.style.fontSize = "17px";
pointsSpan.textContent = parseFloat(persona.Monedero_Balance || "0").toString() + " €";
pointsSpan.textContent = parseFloat(persona.Monedero_Balance || "0").toPrecision(2) + " €";
infoSpan.appendChild(pointsSpan);
}
tdPersona.appendChild(infoSpan);

View File

@@ -5,7 +5,7 @@ PAGES.index = {
index: function() {
container.innerHTML = `
<h1>¡Hola, ${SUB_LOGGED_IN_DETAILS.Nombre}!<br>Bienvenidx a %%TITLE%%</h1>
<h2>Tienes ${fixfloat(parseFloat(SUB_LOGGED_IN_DETAILS.Monedero_Balance)).toString()} € en el monedero.</h2>
<h2>Tienes ${parseFloat(SUB_LOGGED_IN_DETAILS.Monedero_Balance).toPrecision(2)} € en el monedero.</h2>
<em>Utiliza el menú superior para abrir un modulo</em>
<br><br>
<button class="btn1" onclick="LogOutTeleSec()">Cerrar sesión</button>