fix: wizard validation schema

This commit is contained in:
José Oliveira 2021-03-09 15:09:44 +00:00 committed by Josh Harvey
parent ae4d557a9b
commit a5ce5bae56

View file

@ -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 }