Skip to content

Commit

Permalink
Change var name
Browse files Browse the repository at this point in the history
  • Loading branch information
Baghdasaryan committed Jun 28, 2023
1 parent 6faddfd commit 64b3f91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/options/HOC/formHOC.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ const FormHOC = () => {
hasErrors = (error): boolean => {
let index = 0;
const keys = Object.keys(error)
const findError = (asa): boolean => {
if(typeof asa === 'object' && asa) {
const findError = (item): boolean => {
if(typeof item === 'object' && item) {
return this.hasErrors(error[keys[index]]);
}
if(Boolean(asa)) {
if(Boolean(item)) {
return true;
}
if(typeof error[keys[++index]] !== 'undefined') {
Expand Down

0 comments on commit 64b3f91

Please sign in to comment.