diff --git a/index.html b/index.html index 39014f5..6fb165b 100644 --- a/index.html +++ b/index.html @@ -2312,9 +2312,9 @@ data["_key"] = key; console.log(old[key], data.Estado) if (old[key] == undefined) { - old[key] = {}; + old[key] = ""; } - if (old[key].Estado != data.Estado) { + if (old[key] != data.Estado) { console.log("SC:Updated:", data) if (tts) { var msg = `Comanda de ${SC_Personas[data.Persona].Region}. ${SC_Personas[data.Persona].Nombre}. ${data.Estado}` @@ -2325,7 +2325,7 @@ } } rows2[key] = data; - old[key] = data; + old[key] = data.Estado; } else { // console.log("delete", key); delete rows2[key];