feedback fix

This commit is contained in:
ronronscelestes 2021-11-15 11:49:14 +01:00
parent e09a287f30
commit 405fb6897a

View File

@ -80,9 +80,9 @@ const Component = ({
const formErrorsKeys = Object.keys(formErrors);
const fieldsErrors = formErrorsKeys.filter(errorKey => {
const errorKeysArray = errorKey.split('.').filter((_, index) => index < 2);
const errorKeysArray = errorKey.split('.');
if (errorKeysArray.join('.') === `${name}.${index}`) {
if (`${errorKeysArray[0]}.${errorKeysArray[1]}` === `${name}.${index}`) {
return true;
}