From 8e74d8e8614bf14047432dea3a2751a0340b3a29 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Mon, 11 Mar 2019 23:20:23 +0000 Subject: [PATCH] --- ayanova/src/api/gzvalidate.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ayanova/src/api/gzvalidate.js b/ayanova/src/api/gzvalidate.js index 17041b5d..a912ed65 100644 --- a/ayanova/src/api/gzvalidate.js +++ b/ayanova/src/api/gzvalidate.js @@ -25,7 +25,7 @@ export default { return err; }, MaxLength(ltkey, value, max) { - if (value === undefined || value === null) { + if (_.isEmpty(value)) { return false; } @@ -45,11 +45,10 @@ export default { return this.MaxLength(ltkey, value, 255); }, After(startDate, endDate) { - if (startDate === undefined || startDate === null) { + if (_.isEmpty(startDate)) { return false; } - - if (endDate === undefined || endDate === null) { + if (_.isEmpty(endDate)) { return false; }