fix: refactoring account form fields with FastField component.

This commit is contained in:
Ahmed Bouhuolia
2020-11-29 20:22:02 +02:00
parent 62bfc1fc5c
commit cfeca92a60
5 changed files with 306 additions and 317 deletions

View File

@@ -8,7 +8,7 @@ const Schema = Yup.object().shape({
.min(3)
.max(DATATYPES_LENGTH.STRING)
.label(formatMessage({ id: 'account_name_' })),
code: Yup.string().digits().min(3).max(6),
code: Yup.string().nullable().min(3).max(6),
account_type_id: Yup.number()
.nullable()
.required()