From 5a3c1dac1b821b3a96c741e8a423cff162778a9b Mon Sep 17 00:00:00 2001 From: jorgep Date: Wed, 3 Jan 2024 09:56:24 +0100 Subject: [PATCH] refs #6274 fix error msg --- js/clockIn.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/clockIn.js b/js/clockIn.js index 2f7a74f..78a058a 100644 --- a/js/clockIn.js +++ b/js/clockIn.js @@ -53,7 +53,7 @@ function fichar(direction) { jsonData: data, processData: false, success: function (msg) { - if (msg[0].error){ + if (msg.error){ printErrores(msg); setTimeout(function () { cerrar();