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

removed unnecessary required

This commit is contained in:
EnzoVezzaro 2022-10-19 06:59:21 -04:00
parent 52a69a1e37
commit 7b13f84a7f

View File

@ -10,8 +10,8 @@ export const validationSchema = Yup.object().shape({
files: Yup.array<FileInfo[]>() files: Yup.array<FileInfo[]>()
.of( .of(
Yup.object().shape({ Yup.object().shape({
url: Yup.string().url('Must be a valid URL.').required('Required'), url: Yup.string().url('Must be a valid URL.'),
valid: Yup.boolean().isTrue().required('File must be valid.') valid: Yup.boolean().isTrue()
}) })
) )
.nullable(), .nullable(),