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 isSuccessMetadata = errors.metadata === undefined
|
||||||
const isSuccessServices = errors.services === undefined
|
const isSuccessServices = errors.services === undefined
|
||||||
|
|
||||||
|
console.log(errors.services)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<nav className={styles.navigation}>
|
<nav className={styles.navigation}>
|
||||||
<ol>
|
<ol>
|
||||||
|
@ -31,8 +31,10 @@ const validationService = {
|
|||||||
links: Yup.array<{ url: string; valid: boolean }[]>()
|
links: Yup.array<{ url: string; valid: boolean }[]>()
|
||||||
.of(
|
.of(
|
||||||
Yup.object().shape({
|
Yup.object().shape({
|
||||||
url: Yup.string().required('Required'),
|
url: Yup.string(),
|
||||||
valid: Yup.boolean().isTrue().required('File must be valid.')
|
// TODO: require valid file only when URL is given
|
||||||
|
valid: Yup.boolean()
|
||||||
|
// valid: Yup.boolean().isTrue('File must be valid.')
|
||||||
})
|
})
|
||||||
)
|
)
|
||||||
.nullable(),
|
.nullable(),
|
||||||
|
Loading…
Reference in New Issue
Block a user