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)
|
||||
if (!schema[code]) return true
|
||||
|
||||
const { validationSchema } = schema[code]
|
||||
return validationSchema.isValidSync(account)
|
||||
const { getValidationSchema } = schema[code]
|
||||
return getValidationSchema(account).isValidSync(account)
|
||||
})(fConfig)
|
||||
|
||||
return { filled, unfilled }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue