mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix access success state
This commit is contained in:
parent
7b3b0f5ebe
commit
4f62205599
@ -15,6 +15,8 @@ export default function Navigation(): ReactElement {
|
||||
const isSuccessMetadata = errors.metadata === undefined
|
||||
const isSuccessServices = errors.services === undefined
|
||||
|
||||
console.log(errors.services)
|
||||
|
||||
return (
|
||||
<nav className={styles.navigation}>
|
||||
<ol>
|
||||
|
@ -31,8 +31,10 @@ const validationService = {
|
||||
links: Yup.array<{ url: string; valid: boolean }[]>()
|
||||
.of(
|
||||
Yup.object().shape({
|
||||
url: Yup.string().required('Required'),
|
||||
valid: Yup.boolean().isTrue().required('File must be valid.')
|
||||
url: Yup.string(),
|
||||
// TODO: require valid file only when URL is given
|
||||
valid: Yup.boolean()
|
||||
// valid: Yup.boolean().isTrue('File must be valid.')
|
||||
})
|
||||
)
|
||||
.nullable(),
|
||||
|
Loading…
Reference in New Issue
Block a user