Skip to content

Commit 7d9b562

Browse files
committed
Correction to the validateDateTime
1 parent b2abf76 commit 7d9b562

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ export const validateString = ( val ) => {
501501
}
502502

503503
export const validateDateTime = (val) => {
504-
if (!isNaN(Date.parse(val))) {
504+
if (isNaN(Date.parse(val))) {
505505
return "Value must be a DateTime"
506506
}
507507
}

0 commit comments

Comments
 (0)