This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
// import { isAfter, isEqual } from "date-fns";
|
||||
// import { parseDate as parse } from "../utils/date";
|
||||
import dayjs from "dayjs";
|
||||
|
||||
/*eslint-disable */
|
||||
const gzAfterValidator = (value, { targetValue } = {}) => {
|
||||
if (!targetValue) {
|
||||
console.log("GZAFTERVALIDATOR - TARGET IS EMPTY!");
|
||||
return false;
|
||||
//throw "GZAFTERVALIDATOR - TARGET IS EMPTY";
|
||||
}
|
||||
value = dayjs(value);
|
||||
targetValue = dayjs(targetValue);
|
||||
|
||||
@@ -10,8 +15,8 @@ const gzAfterValidator = (value, { targetValue } = {}) => {
|
||||
if (!value || !targetValue) {
|
||||
return false;
|
||||
}
|
||||
/*eslint-disable */
|
||||
debugger;
|
||||
|
||||
//debugger;
|
||||
return value.isAfter(targetValue);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user