Skip to content

Commit

Permalink
NAS-133460: Confirm Password shows error message even if I havent tou…
Browse files Browse the repository at this point in the history
…ched it yet (#11326)
  • Loading branch information
AlexKarpov98 authored Jan 15, 2025
1 parent 46b4f6c commit fec317d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export function matchOthersFgValidator(
if (isEmpty(prevErrors)) {
prevErrors = null;
}
subjectControl.setErrors(prevErrors);
if (fg.get(controlName).touched) {
subjectControl.setErrors(prevErrors);
}
return null;
};
}
Expand Down Expand Up @@ -78,7 +80,9 @@ export function doesNotEqualFgValidator(
if (isEmpty(prevErrors)) {
prevErrors = null;
}
subjectControl.setErrors(prevErrors);
if (fg.get(controlName).touched) {
subjectControl.setErrors(prevErrors);
}
return null;
};
}

0 comments on commit fec317d

Please sign in to comment.