fix: wizard validation schema
This commit is contained in:
parent
ae4d557a9b
commit
a5ce5bae56
1 changed files with 2 additions and 2 deletions
|
|
@ -13,8 +13,8 @@ export const getItems = (accountsConfig, accounts, type, crypto) => {
|
||||||
const account = find(code)
|
const account = find(code)
|
||||||
if (!schema[code]) return true
|
if (!schema[code]) return true
|
||||||
|
|
||||||
const { validationSchema } = schema[code]
|
const { getValidationSchema } = schema[code]
|
||||||
return validationSchema.isValidSync(account)
|
return getValidationSchema(account).isValidSync(account)
|
||||||
})(fConfig)
|
})(fConfig)
|
||||||
|
|
||||||
return { filled, unfilled }
|
return { filled, unfilled }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue