fix опечатка

This commit is contained in:
vchikalkin 2023-04-17 14:57:16 +03:00
parent 9f7776243f
commit 622f4e75ed

View File

@ -52,7 +52,7 @@ export function createValidationReaction<T extends ZodTypeAny>(
if (validationResult.success === false) {
validationResult.error.errors.forEach(({ path, message }) => {
(path as Array<Elements & ('insurance' | 'insurance')>).forEach((elementName) => {
(path as Array<Elements & ('insurance' | 'payments')>).forEach((elementName) => {
if (elementName === 'insurance') {
const removeError = $tables.insurance.setError({ key, message });
if (removeError) helper.add(removeError);