From c9ea4794ffce87e9dc139486e5b9de04bcf1758c Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Mon, 9 May 2022 12:19:49 -0500 Subject: [PATCH] FormGroup: use hasError variable (tiny refactor) --- app/soapbox/components/ui/form-group/form-group.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/soapbox/components/ui/form-group/form-group.tsx b/app/soapbox/components/ui/form-group/form-group.tsx index bdcd6d65aa..75517fc79d 100644 --- a/app/soapbox/components/ui/form-group/form-group.tsx +++ b/app/soapbox/components/ui/form-group/form-group.tsx @@ -46,7 +46,7 @@ const FormGroup: React.FC = (props) => { )} - {errors?.length > 0 && ( + {hasError && (