FormGroup: use hasError variable (tiny refactor)

This commit is contained in:
Alex Gleason 2022-05-09 12:19:49 -05:00
parent 06385acbe0
commit c9ea4794ff
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -46,7 +46,7 @@ const FormGroup: React.FC<IFormGroup> = (props) => {
</label>
)}
{errors?.length > 0 && (
{hasError && (
<div>
<p
data-testid='form-group-error'