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

fix for title field

This commit is contained in:
EnzoVezzaro 2022-09-28 08:46:48 -04:00
parent 35d3a548b6
commit 3f03c4f4b8

View File

@ -46,13 +46,13 @@ export async function validateFieldSchaclSchema(
if (value.length < minLength) { if (value.length < minLength) {
return createError({ return createError({
message: `${capitalizeFirstLetter( message: `${capitalizeFirstLetter(
valueField valueField === 'name' ? 'title' : valueField
)} must be at least ${minLength} characters` )} must be at least ${minLength} characters`
}) })
} else if (value.length > maxLength) { } else if (value.length > maxLength) {
return createError({ return createError({
message: `${capitalizeFirstLetter( message: `${capitalizeFirstLetter(
valueField valueField === 'name' ? 'title' : valueField
)} must have maximum ${maxLength} characters` )} must have maximum ${maxLength} characters`
}) })
} else { } else {