Fix cert required (#1057)

This commit is contained in:
ekzyis 2024-04-12 01:59:51 +02:00 committed by GitHub
parent 8956bc8809
commit 7774910292
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -159,6 +159,7 @@ const hexOrBase64Validator = string().test({
name: 'hex-or-base64',
message: 'invalid encoding',
test: (val) => {
if (typeof val === 'undefined') return true
try {
ensureB64(val)
return true