1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix tag field on publish

This commit is contained in:
EnzoVezzaro 2022-11-22 07:30:44 -04:00
parent d575e058c2
commit 70a578ea2b

View File

@ -29,12 +29,7 @@ const validationMetadata = {
if (!value) return
return await validateFieldSchaclSchema(path, value, createError)
}),
tags: Yup.string()
.nullable(true)
.test(async (value, { path, createError }): Promise<any> => {
if (!value) return
return await validateFieldSchaclSchema(path, value, createError)
}),
tags: Yup.array<string[]>().nullable(true),
termsAndConditions: Yup.boolean().isTrue()
}