diff --git a/js/clockIn.js b/js/clockIn.js index 91f8945..2f7a74f 100644 --- a/js/clockIn.js +++ b/js/clockIn.js @@ -225,12 +225,8 @@ function ifIsEmptyImage(value) { } } -function ifIsEmptyText(value) { - if (!value) { - return 0; - } else { - return value; - } +function ifIsEmptyText(value = 0) { + return value; } function cerrar(){