]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/schema/yup.js
base logic test cases
[alttp.git] / resources / js / schema / yup.js
index bc506bc4004c394c655cfc64c3db9a2e0d6f626b..501d79e01db8bc0e7db0931f44cede0f643680f9 100644 (file)
@@ -7,7 +7,7 @@ yup.addMethod(yup.string, 'time', function (errorMessage) {
                const { path, createError } = this;
                return (
                        !value ||
-                       parseTime(value) ||
+                       !isNaN(parseTime(value)) ||
                        createError({ path, message: errorMessage || 'validation.error.time' })
                );
        });