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:
parent
35d3a548b6
commit
3f03c4f4b8
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user