Fix cert required (#1057)
This commit is contained in:
parent
8956bc8809
commit
7774910292
|
@ -159,6 +159,7 @@ const hexOrBase64Validator = string().test({
|
||||||
name: 'hex-or-base64',
|
name: 'hex-or-base64',
|
||||||
message: 'invalid encoding',
|
message: 'invalid encoding',
|
||||||
test: (val) => {
|
test: (val) => {
|
||||||
|
if (typeof val === 'undefined') return true
|
||||||
try {
|
try {
|
||||||
ensureB64(val)
|
ensureB64(val)
|
||||||
return true
|
return true
|
||||||
|
|
Loading…
Reference in New Issue