FormGroup: use hasError variable (tiny refactor)
This commit is contained in:
parent
06385acbe0
commit
c9ea4794ff
1 changed files with 1 additions and 1 deletions
|
@ -46,7 +46,7 @@ const FormGroup: React.FC<IFormGroup> = (props) => {
|
||||||
</label>
|
</label>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{errors?.length > 0 && (
|
{hasError && (
|
||||||
<div>
|
<div>
|
||||||
<p
|
<p
|
||||||
data-testid='form-group-error'
|
data-testid='form-group-error'
|
||||||
|
|
Loading…
Reference in a new issue