]> git.localhorst.tv Git - alttp.git/blobdiff - resources/js/schema/yup.js
add APNG player
[alttp.git] / resources / js / schema / yup.js
index 19f8b5824e1b978a62314f319c1727d5db8db86b..bc506bc4004c394c655cfc64c3db9a2e0d6f626b 100644 (file)
@@ -6,6 +6,7 @@ yup.addMethod(yup.string, 'time', function (errorMessage) {
        return this.test('test-time-format', errorMessage, function (value) {
                const { path, createError } = this;
                return (
+                       !value ||
                        parseTime(value) ||
                        createError({ path, message: errorMessage || 'validation.error.time' })
                );