mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix terms
This commit is contained in:
parent
74ba8c4664
commit
f4428feb52
@ -37,9 +37,10 @@ export async function validateFieldSchaclSchema(
|
|||||||
value: any,
|
value: any,
|
||||||
createError: any
|
createError: any
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
const schemaField: any = await retrieveShaclSchema()
|
const schemaFields: any = await retrieveShaclSchema()
|
||||||
const fieldSchema: ShaclSchemaField = schemaField[keyField][valueField]
|
const fieldSchema: ShaclSchemaField = schemaFields[keyField][valueField]
|
||||||
const { minLength, maxLength } = getMinMax(valueField, fieldSchema)
|
const { minLength, maxLength } = getMinMax(valueField, fieldSchema)
|
||||||
|
console.log(schemaFields)
|
||||||
|
|
||||||
// TODO: add minLength when integrated in endpoint
|
// TODO: add minLength when integrated in endpoint
|
||||||
if (value.length < minLength) {
|
if (value.length < minLength) {
|
||||||
|
@ -66,7 +66,7 @@ const validationMetadata = {
|
|||||||
createError
|
createError
|
||||||
)
|
)
|
||||||
}),
|
}),
|
||||||
termsAndConditions: Yup.boolean()
|
termsAndConditions: Yup.boolean().isTrue()
|
||||||
}
|
}
|
||||||
|
|
||||||
const validationService = {
|
const validationService = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user