1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-15 01:34:57 +01:00

datatoken info as part of validation schema

This commit is contained in:
Matthias Kretschmann 2020-09-21 21:26:07 +00:00
parent d85f6c0777
commit 0c3afad2cd
2 changed files with 7 additions and 2 deletions

View File

@ -10,7 +10,6 @@ export default function MetaSecondary({
}: {
metadata: MetadataMarket
}): ReactElement {
console.log(metadata)
return (
<aside className={styles.metaSecondary}>
{metadata?.additionalInformation?.tags?.length > 0 && (

View File

@ -19,7 +19,13 @@ export const validationSchema = Yup.object().shape<MetadataPublishForm>({
liquidityProviderFee: Yup.number()
.min(0.1, 'Must be more or equal to 0.1')
.max(0.9, 'Must be less or equal to 0.9')
.required('Required')
.required('Required'),
datatoken: Yup.object()
.shape({
name: Yup.string(),
symbol: Yup.string()
})
.nullable()
})
.required('Required'),
files: Yup.array<FileMetadata>().required('Required').nullable(),